mirror of
https://github.com/appwrite/appwrite.git
synced 2026-11-18 20:36:03 +00:00
Update app/controllers/general.php
Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
This commit is contained in:
1 parent
ad18ac03b4
commit
8c50a32f9e
1 file changed
+1
-1
@@ -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(),
|
||||
|
||||
Reference in new issue
Block a user