Fix post update

This commit is contained in:
Kilian committed 2024-07-27 16:08:13 +02:00
1 parent d71eaf2ef2
commit 64311f2765
1 file changed
+1 -1
+1 -1
View File
@@ -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);