fix(plugin-storage-fs): adapt to the new migration metadata format
This commit is contained in:
parent
8f35812fed
commit
552e784fc9
1 changed files with 2 additions and 2 deletions
|
|
@ -79,10 +79,10 @@ export default function storageFs({ filename }: StorageFsOptions): StoragePlugin
|
||||||
}));
|
}));
|
||||||
},
|
},
|
||||||
async onSuccess(migration) {
|
async onSuccess(migration) {
|
||||||
await update(migration, 'done');
|
await update(migration.name, 'done');
|
||||||
},
|
},
|
||||||
async onError(migration, error) {
|
async onError(migration, error) {
|
||||||
await update(migration, 'failed', error);
|
await update(migration.name, 'failed', error);
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue