mirror of
https://github.com/appwrite/appwrite.git
synced 2026-11-18 20:36:03 +00:00
Reset attempts to 0 on successful request
This commit is contained in:
1 parent
68ccaf17b1
commit
bbd551cf0d
3 files changed
+7
-6
No files matched your search
@@ -136,6 +136,8 @@ class Webhooks extends Action
|
||||
$dbForConsole->deleteCachedDocument('projects', $project->getId());
|
||||
|
||||
$this->errors[] = $logs;
|
||||
} else {
|
||||
$webhook->setAttribute('attempts', 0); //set failed attempts back to 0 on successful request
|
||||
}
|
||||
|
||||
\curl_close($ch);
|
||||
|
||||
Reference in new issue
Block a user