Update src/Appwrite/Platform/Workers/Migrations.php

Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
This commit is contained in:
Jake Barnby 2025-10-23 17:03:16 +13:00 committed by GitHub
parent 26e07b8c26
commit d4e5a1bdf2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -536,6 +536,11 @@ class Migrations extends Action
Query::equal('$sequence', [$userInternalId]) Query::equal('$sequence', [$userInternalId])
]); ]);
if (!$user || $user->isEmpty()) {
Console::warning("User not found for CSV export notification: $userInternalId");
return;
}
// Set up locale // Set up locale
$locale = new Locale(System::getEnv('_APP_LOCALE', 'en')); $locale = new Locale(System::getEnv('_APP_LOCALE', 'en'));
$locale->setFallback(System::getEnv('_APP_LOCALE', 'en')); $locale->setFallback(System::getEnv('_APP_LOCALE', 'en'));