mirror of
https://github.com/appwrite/appwrite.git
synced 2026-05-26 13:51:13 +00:00
add relations into attributes collection
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user