From e2d3c95fa646e92b224d7e277d83c9806092ca5d Mon Sep 17 00:00:00 2001 From: fogelito Date: Wed, 29 Mar 2023 23:37:22 +0300 Subject: [PATCH] add relations into attributes collection --- app/workers/databases.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/workers/databases.php b/app/workers/databases.php index a88373e580..dc2046e00c 100644 --- a/app/workers/databases.php +++ b/app/workers/databases.php @@ -159,13 +159,14 @@ class DatabaseV1 extends Worker } $dbForProject->updateDocument('attributes', $attribute->getId(), $attribute->setAttribute('status', 'available')); + // todo: needs to clean cache for related colllection? + } catch (\Throwable $th) { Console::error($th->getMessage()); $dbForProject->updateDocument('attributes', $attribute->getId(), $attribute->setAttribute('status', 'failed')); if (Database::VAR_RELATIONSHIP === $type) { $dbForProject->updateDocument('attributes', $related->getId(), $related->setAttribute('status', 'failed')); - // todo: needs to clean cache for related colllection? } } finally { $target = Realtime::fromPayload(