1
0
Fork 0
mirror of synced 2024-06-01 10:29:48 +12:00

Return from create attribute job is unable to find it in the attributes table

This commit is contained in:
Jake Barnby 2024-05-08 21:16:27 +12:00
parent 57a8a8f187
commit 360abf4b69
No known key found for this signature in database
GPG key ID: C437A8CC85B96E9C

View file

@ -116,6 +116,11 @@ class Databases extends Action
*/
$attribute = $dbForProject->getDocument('attributes', $attribute->getId());
if ($attribute->isEmpty()) {
// Attribute was deleted before job was processed
return;
}
$collectionId = $collection->getId();
$key = $attribute->getAttribute('key', '');
$type = $attribute->getAttribute('type', '');
@ -176,7 +181,6 @@ class Databases extends Action
}
}
$dbForProject->updateDocument(
'attributes',
$attribute->getId(),