adding members management
All checks were successful
Build and test backend / Build-backend (pull_request) Successful in 3m35s
Build and test FrontEnd / Build-frontend (pull_request) Successful in 26s

This commit is contained in:
2024-03-27 23:54:59 +01:00
parent 1522d74ed3
commit 729d1ad504
6 changed files with 77 additions and 8 deletions

View File

@ -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){