admin: also delete useless QA content with exercice
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:
parent
c10becba91
commit
f53a5dbcf9
@ -257,6 +257,10 @@ func (e Exercice) DeleteCascade() (int64, error) {
|
|||||||
return 0, err
|
return 0, err
|
||||||
} else if _, err := DBExec("DELETE FROM exercice_tags WHERE id_exercice = ?", e.Id); err != nil {
|
} else if _, err := DBExec("DELETE FROM exercice_tags WHERE id_exercice = ?", e.Id); err != nil {
|
||||||
return 0, err
|
return 0, err
|
||||||
|
} else if _, err := DBExec("DELETE FROM teams_qa_todo WHERE id_exercice = ?", e.Id); err != nil {
|
||||||
|
return 0, err
|
||||||
|
} else if _, err := DBExec("DELETE FROM teams_qa_view WHERE id_exercice = ?", e.Id); err != nil {
|
||||||
|
return 0, err
|
||||||
} else {
|
} else {
|
||||||
return e.Delete()
|
return e.Delete()
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user