Updating history clear order
This commit is contained in:
parent
f9a83d5c65
commit
fb0e5ce4bc
@ -243,11 +243,11 @@ func accessReview(rw http.ResponseWriter, req *http.Request) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func clearHistory(rw http.ResponseWriter, req *http.Request) {
|
func clearHistory(rw http.ResponseWriter, req *http.Request) {
|
||||||
if _, err := db.Exec("DELETE FROM history"); err != nil {
|
if _, err := db.Exec("DELETE FROM historyGroups"); err != nil {
|
||||||
log.Fatal(err)
|
log.Fatal(err)
|
||||||
}
|
}
|
||||||
|
|
||||||
if _, err := db.Exec("DELETE FROM historyGroups"); err != nil {
|
if _, err := db.Exec("DELETE FROM history"); err != nil {
|
||||||
log.Fatal(err)
|
log.Fatal(err)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user