Merge pull request #8956 from appwrite/fix-migration-id-null

Remove double fetch from migrations worker
This commit is contained in:
Jake Barnby 2024-11-11 22:13:57 +13:00 committed by GitHub
commit 3846903b9d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -268,8 +268,6 @@ class Migrations extends Action
$transfer = $source = $destination = null;
try {
$migration = $this->dbForProject->getDocument('migrations', $migration->getId());
if (
$migration->getAttribute('source') === SourceAppwrite::getName() &&
empty($migration->getAttribute('credentials', []))