Update app/controllers/general.php

Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
This commit is contained in:
Shmuel Fogelandgreptile-apps[bot] authored and GitHub committed 2026-07-07 09:15:18 +03:00
1 parent ad18ac03b4
commit 8c50a32f9e
1 file changed
+1 -1
+1 -1
View File
@@ -1698,7 +1698,7 @@ Http::get('/v1/ping')
$pingCount = $project->getAttribute('pingCount', 0) + 1;
if ($pingCount <= 1) {
if ($pingCount === 1) {
$project = $authorization->skip(fn () => $dbForPlatform->updateDocument('projects', $project->getId(), new Document([
'pingCount' => $pingCount,
'pingedAt' => DateTime::now(),