mirror of
https://github.com/appwrite/appwrite.git
synced 2026-05-26 13:51:13 +00:00
fix: use nullsafe operator for project attribute retrieval in Action class
This commit is contained in:
+1
-1
@@ -382,7 +382,7 @@ abstract class Action extends DatabasesAction
|
||||
->from($queueForEvents)
|
||||
->trigger();
|
||||
|
||||
if (!empty($queueForEvents->getProject()->getAttribute('webhooks', []))) {
|
||||
if (!empty($queueForEvents->getProject()?->getAttribute('webhooks', []))) {
|
||||
$queueForWebhooks
|
||||
->from($queueForEvents)
|
||||
->trigger();
|
||||
|
||||
Reference in New Issue
Block a user