fix(plugin-storage-fs): adapt to the new migration metadata format

This commit is contained in:
Joakim Carlstein 2023-11-16 15:01:48 +01:00
parent 8f35812fed
commit 552e784fc9

View file

@ -79,10 +79,10 @@ export default function storageFs({ filename }: StorageFsOptions): StoragePlugin
}));
},
async onSuccess(migration) {
await update(migration, 'done');
await update(migration.name, 'done');
},
async onError(migration, error) {
await update(migration, 'failed', error);
await update(migration.name, 'failed', error);
},
};
},