mirror of
https://github.com/appwrite/appwrite
synced 2026-05-16 05:28:31 +00:00
Update src/Appwrite/Platform/Workers/Migrations.php
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
This commit is contained in:
parent
26e07b8c26
commit
d4e5a1bdf2
1 changed files with 5 additions and 0 deletions
|
|
@ -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'));
|
||||
|
|
|
|||
Loading…
Reference in a new issue