implement safe deletion
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2024-01-10 12:00:00 +11:00
parent cef741f2d8
commit e14f4007a4
4 changed files with 76 additions and 3 deletions

View File

@@ -99,7 +99,7 @@ func (g *Group) GroupDelete() error {
// Delete the group
log.Printf("GroupDelete confirmed group exists, continuing with deletion of group '%s'\n", g.GroupName)
result, err := db.NamedExec((`DELETE FROM group WHERE GroupId = :GroupId`), g)
result, err := db.NamedExec((`DELETE FROM groups WHERE GroupId = :GroupId`), g)
if err != nil {
log.Printf("GroupDelete error executing sql delete : '%s'\n", err)