diff --git a/app/workers/databases.php b/app/workers/databases.php index 79c79a69c..d3a8e17b1 100644 --- a/app/workers/databases.php +++ b/app/workers/databases.php @@ -96,10 +96,10 @@ class DatabaseV1 extends Worker throw new Exception('Failed to create Attribute'); } $dbForProject->updateDocument('attributes', $attribute->getId(), $attribute->setAttribute('status', 'available')); - // $dbForProject->updateDocument('attributes', $attribute->getId(), $attribute->setAttribute('error', 'available')); } catch (\Throwable $th) { Console::error($th->getMessage()); $dbForProject->updateDocument('attributes', $attribute->getId(), $attribute->setAttribute('status', 'failed')); + $dbForProject->updateDocument('attributes', $attribute->getId(), $attribute->setAttribute('error', $th->getMessage())); } finally { $target = Realtime::fromPayload( // Pass first, most verbose event pattern