Fix post update
This commit is contained in:
parent
d71eaf2ef2
commit
64311f2765
@ -141,7 +141,7 @@ class Post implements JsonSerializable
|
||||
} else $reason = ["{$e->getCode()}"];
|
||||
}
|
||||
}
|
||||
if ($failed !== null) {
|
||||
if (count($failed) > 0) {
|
||||
$db->rollBack();
|
||||
|
||||
throw ApiError::failedUpdate($failed, $reason);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user