mirror of
https://github.com/appwrite/appwrite.git
synced 2026-05-26 13:51:13 +00:00
Reset attempts to 0 on successful request
This commit is contained in:
@@ -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