implement safe deletion
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
@@ -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)
|
||||
|
Reference in New Issue
Block a user