mirror of
https://github.com/appwrite/appwrite.git
synced 2026-11-18 20:36:03 +00:00
setEvent
This commit is contained in:
1 parent
b672a47b7e
commit
0f9f0db9dc
1 file changed
+1
-3
@@ -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!');
|
||||
|
||||
Reference in new issue
Block a user