mirror of
https://github.com/appwrite/appwrite
synced 2026-05-22 16:38:32 +00:00
Return on Dependency
This commit is contained in:
parent
6067fb77b7
commit
a3bd26d7f5
1 changed files with 4 additions and 2 deletions
|
|
@ -293,16 +293,18 @@ class Databases extends Action
|
|||
|
||||
if ($e instanceof DatabaseException) {
|
||||
$attribute->setAttribute('error', $e->getMessage());
|
||||
if (!$relatedAttribute->isEmpty()) {
|
||||
if (! $relatedAttribute->isEmpty()) {
|
||||
$relatedAttribute->setAttribute('error', $e->getMessage());
|
||||
}
|
||||
}
|
||||
|
||||
$dbForProject->updateDocument(
|
||||
'attributes',
|
||||
$attribute->getId(),
|
||||
$attribute->setAttribute('status', 'stuck')
|
||||
);
|
||||
if (!$relatedAttribute->isEmpty()) {
|
||||
|
||||
if (! $relatedAttribute->isEmpty()) {
|
||||
$dbForProject->updateDocument(
|
||||
'attributes',
|
||||
$relatedAttribute->getId(),
|
||||
|
|
|
|||
Loading…
Reference in a new issue