From c0cb4681ae583cd9e9026b2a9a10771467263938 Mon Sep 17 00:00:00 2001 From: Jake Barnby Date: Tue, 28 Oct 2025 17:58:31 +1300 Subject: [PATCH] Fix error encode --- src/Appwrite/Platform/Workers/Migrations.php | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/Appwrite/Platform/Workers/Migrations.php b/src/Appwrite/Platform/Workers/Migrations.php index da7b180926..fe06f9c366 100644 --- a/src/Appwrite/Platform/Workers/Migrations.php +++ b/src/Appwrite/Platform/Workers/Migrations.php @@ -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, ));