From d78c880bf02aadb8ede51bb3ca50bf59f3b7ff69 Mon Sep 17 00:00:00 2001 From: Bradley Schofield Date: Wed, 17 Jul 2024 15:20:34 +0900 Subject: [PATCH] Update V21.php --- src/Appwrite/Migration/Version/V21.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Appwrite/Migration/Version/V21.php b/src/Appwrite/Migration/Version/V21.php index 10193ec60c..4bd27b71bc 100644 --- a/src/Appwrite/Migration/Version/V21.php +++ b/src/Appwrite/Migration/Version/V21.php @@ -7,6 +7,7 @@ use Exception; use Throwable; use Utopia\CLI\Console; use Utopia\Database\Database; +use Utopia\Database\DateTime; use Utopia\Database\Document; class V21 extends Migration @@ -133,7 +134,7 @@ class V21 extends Migration /** * Add scopes attribute. */ - if (!$document->getAttribute('scopes', false)) { + if (empty($document->getAttribute('scopes', []))) { $document->setAttribute('scopes', []); } break;