adding members management
This commit is contained in:
@ -13,8 +13,8 @@ import { ref } from 'vue'
|
||||
* - name
|
||||
* - members
|
||||
*/
|
||||
export const discussionsList = ref({});
|
||||
export const currentDiscussion = ref({});
|
||||
export const discussionsList = ref();
|
||||
export const currentDiscussion = ref([]);
|
||||
|
||||
|
||||
export async function createDiscussion(name){
|
||||
@ -24,7 +24,7 @@ export async function createDiscussion(name){
|
||||
|
||||
|
||||
export async function invite(id, regNo){
|
||||
restPost("/discussion/"+ id+ "/invite", {user: regNo});
|
||||
restPatch("/discussion/"+ id+ "/add", {regNo: parseInt(regNo)}).then(() => fetchDiscussion(id))
|
||||
}
|
||||
|
||||
export async function sendMessage(id, content, responseId){
|
||||
|
Reference in New Issue
Block a user