1
0
mirror of https://gitlab.com/comunic/comunicapiv2 synced 2024-11-21 21:09:22 +00:00

Can delete groups

This commit is contained in:
Pierre HUBERT 2020-03-26 16:43:55 +01:00
parent 7375152fcf
commit 9cc205f59a

View File

@ -606,7 +606,15 @@ export class GroupsHelper {
// Delete all group related notifications
await NotificationsHelper.DeleteAllRelatedWithGroup(groupID);
// TODO : continue deletion
// Delete all group members
await DatabaseHelper.DeleteRows(GROUPS_MEMBERS_TABLE, {
groups_id: groupID
});
// Delete group information
await DatabaseHelper.DeleteRows(GROUPS_LIST_TABLE, {
id: groupID
});
}
/**