mirror of
https://github.com/appwrite/appwrite
synced 2026-05-24 01:18:37 +00:00
Fix error encode
This commit is contained in:
parent
b39a118bba
commit
c0cb4681ae
1 changed files with 3 additions and 4 deletions
|
|
@ -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,
|
||||
));
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue