Commit f25e9f1d authored by Nicolas Frandeboeuf's avatar Nicolas Frandeboeuf

Simplify m15 migration after weboob-version ghost setting addition: re-run m12

parent 02a097c7
......@@ -466,18 +466,8 @@ let migrations = [
},
async function m15(userId) {
log.info('Removing weboob-version from the database...');
try {
let found = await Settings.byName(userId, 'weboob-version');
if (found) {
await Settings.destroy(userId, found.id);
log.info('Found and deleted weboob-version.');
}
return true;
} catch (e) {
log.error('Error while removing weboob-version: ', e.toString());
return false;
}
log.info('Re-applying m12 now that "weboob-version" was moved to ghost settings.');
return await migrations[12](userId);
},
async function m16(userId) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment