feat: closes #11 and fixed database cons remaining open

This commit is contained in:
2023-09-22 19:22:36 +01:00
parent 1986be1a84
commit 1964303dce
15 changed files with 650 additions and 10 deletions

View File

@@ -62,6 +62,7 @@ func handleDelete(handle *Handle) {
if err != nil {
return Error500(err)
}
defer rows.Close()
if !rows.Next() {
return ErrorCode(nil, http.StatusNotFound, AnyMap{