Migration script.

This commit is contained in:
HenriT
2021-04-22 19:05:41 +03:00
parent f0dec10854
commit cf0a3b103b
4 changed files with 218 additions and 2 deletions

View File

@ -1,4 +1,5 @@
import localForage from 'localforage';
import MigrationService from '@/services/migration.service';
import { download } from '../utils/helpers';
export default {
@ -12,6 +13,9 @@ export default {
},
},
actions: {
async migrate() {
return MigrationService.migrate();
},
async exportJson() {
let results = [];
const keys = await localForage.keys();