Return from create attribute job is unable to find it in the attributes table
This commit is contained in:
parent
57a8a8f187
commit
360abf4b69
|
@ -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(),
|
||||
|
|
Loading…
Reference in a new issue