Skip to content

Commit d4e5a1b

Browse files
Update src/Appwrite/Platform/Workers/Migrations.php
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
1 parent 26e07b8 commit d4e5a1b

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

src/Appwrite/Platform/Workers/Migrations.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -535,6 +535,11 @@ protected function handleCSVExportComplete(Document $project, Document $migratio
535535
$user = $this->dbForPlatform->findOne('users', [
536536
Query::equal('$sequence', [$userInternalId])
537537
]);
538+
539+
if (!$user || $user->isEmpty()) {
540+
Console::warning("User not found for CSV export notification: $userInternalId");
541+
return;
542+
}
538543

539544
// Set up locale
540545
$locale = new Locale(System::getEnv('_APP_LOCALE', 'en'));

0 commit comments

Comments
 (0)