Fix post update

This commit is contained in:
Kilian Hofmann 2024-07-27 16:08:13 +02:00
parent d71eaf2ef2
commit 64311f2765

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);