Fix error encode

This commit is contained in:
Jake Barnby 2025-10-28 17:58:31 +13:00
parent b39a118bba
commit c0cb4681ae

View file

@ -453,12 +453,11 @@ class Migrations extends Action
try {
$this->deviceForFiles->delete($path);
} finally {
$message = "Export file size {$sizeMB}MB exceeds your plan limit.";
$this->dbForProject->updateDocument('migrations', $migration->getId(), $migration->setAttribute(
'errors',
[
'code' => 0,
'message' => "Export file size {$sizeMB}MB exceeds your plan limit.",
],
json_encode(['code' => 0, 'message' => $message]),
Document::SET_TYPE_APPEND,
));