feat: closes #11 and fixed database cons remaining open
This commit is contained in:
@@ -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{
|
||||
|
||||
Reference in New Issue
Block a user