BUG: Fixed resource overload when getting workflows

This commit is contained in:
frikky
2020-12-08 11:52:05 +01:00
parent 7d7038a8da
commit 66aad9c0ec
2 changed files with 18 additions and 5 deletions
+1 -1
View File
@@ -4455,7 +4455,7 @@ func handleGetallHooks(resp http.ResponseWriter, request *http.Request) {
var allhooks []Hook
_, err = dbclient.GetAll(ctx, q, &allhooks)
if err != nil {
log.Printf("Failed getting workflows for user %s: %s", user.Username, err)
log.Printf("Failed getting hooks for user %s: %s", user.Username, err)
resp.WriteHeader(401)
resp.Write([]byte(`{"success": false}`))
return