mirror of
https://github.com/appwrite/appwrite
synced 2026-05-24 09:28:40 +00:00
chore: review comments
This commit is contained in:
parent
bdb6599087
commit
5b28e7c478
1 changed files with 2 additions and 2 deletions
|
|
@ -76,7 +76,7 @@ $eventDatabaseListener = function (Document $project, Document $document, Respon
|
|||
|
||||
|
||||
/** Trigger webhooks events only if a project has them enabled */
|
||||
if ($project->getAttribute('webhooks', []) !== []) {
|
||||
if (!empty($project->getAttribute('webhooks'))) {
|
||||
$queueForWebhooks
|
||||
->from($queueForEvents)
|
||||
->trigger();
|
||||
|
|
@ -697,7 +697,7 @@ App::shutdown()
|
|||
* But it might have performance implications on the API due to the number of webhooks etc.
|
||||
* Some profiling is needed to see if this is a problem.
|
||||
*/
|
||||
if ($project->getAttribute('webhooks', []) !== []) {
|
||||
if (!empty($project->getAttribute('webhooks'))) {
|
||||
$queueForWebhooks
|
||||
->from($queueForEvents)
|
||||
->trigger();
|
||||
|
|
|
|||
Loading…
Reference in a new issue