From 0f9f0db9dc96cf502c610937550db8453d29486f Mon Sep 17 00:00:00 2001 From: fogelito Date: Tue, 7 Jul 2026 16:52:57 +0300 Subject: [PATCH] setEvent --- app/controllers/general.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/app/controllers/general.php b/app/controllers/general.php index 48c910188a..c8d266cf8d 100644 --- a/app/controllers/general.php +++ b/app/controllers/general.php @@ -1664,7 +1664,6 @@ Http::get('/v1/ping') ->groups(['api', 'general']) ->desc('Test the connection between the Appwrite and the SDK.') ->label('scope', 'global') - ->label('event', 'projects.[projectId].ping') ->label('sdk', new Method( namespace: 'ping', group: null, @@ -1699,10 +1698,9 @@ Http::get('/v1/ping') ]))); $queueForEvents + ->setEvent('projects.[projectId].ping') ->setParam('projectId', $project->getId()) ->setPayload($response->output($project, Response::MODEL_PROJECT)); - } else { - $queueForEvents->setEvent(''); } $response->text('Pong!');