Reset attempts to 0 on successful request

This commit is contained in:
Khushboo Verma
2024-01-05 17:54:20 +05:30
parent 68ccaf17b1
commit bbd551cf0d
3 changed files with 7 additions and 6 deletions
@@ -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);