update todo, delete uneccessary body http respons

This commit is contained in:
2026-04-03 01:00:00 +02:00
parent 922f13c64f
commit 8d97e28dde
7 changed files with 49 additions and 22 deletions
+9
View File
@@ -125,6 +125,15 @@ func DbSaveGroupWithoutClients(ctx context.Context, group *Group) error {
return err
}
// DbDeleteGroup deletes given group by id
// return: error if not successful
func DbDeleteGroup(ctx context.Context, group *Group) error {
_, err := dbConn.Exec(ctx, `
DELETE FROM chat_groups WHERE id = $1
`, group.Id)
return err
}
// DbSetGroupByIdWithoutClients sets all fields of given struct with database's data using id, populates Clients map with member ids but not their data
// return: error if not successful
func DbSetGroupByIdWithoutClients(ctx context.Context, group *Group) error {