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

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