From 05ed7214b0a747cfa7e9d1ec6358bc9865ac7541 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Samuel=20=C5=A0tancl?= Date: Wed, 5 Oct 2022 09:36:47 +0200 Subject: [PATCH] Update UpdateSyncedResource.php --- src/Listeners/UpdateSyncedResource.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Listeners/UpdateSyncedResource.php b/src/Listeners/UpdateSyncedResource.php index 0b2d1517..ba5cb489 100644 --- a/src/Listeners/UpdateSyncedResource.php +++ b/src/Listeners/UpdateSyncedResource.php @@ -15,6 +15,8 @@ use Stancl\Tenancy\Events\SyncedResourceChangedInForeignDatabase; use Stancl\Tenancy\Events\SyncedResourceSaved; use Stancl\Tenancy\Exceptions\ModelNotSyncMasterException; +// todo@v4 review all code related to resource syncing + class UpdateSyncedResource extends QueueableListener { public static bool $shouldQueue = false; @@ -154,7 +156,7 @@ class UpdateSyncedResource extends QueueableListener return array_merge($model->only(array_merge($model->getSyncedAttributeNames(), $attributes)), $defaultValues); } - // Developer provided the attribute names, so we'd use them to pick model attributes + // Developer provided the attribute names, so we'll use them to pick model attributes return $model->only($model->getSyncedCreationAttributes()); }