fix: Perform migration after restoring data from gist

This commit is contained in:
Peng-YM
2022-07-05 21:44:57 +08:00
parent 41f84ddb85
commit 310d797abf
5 changed files with 13 additions and 10 deletions

View File

@@ -7,6 +7,7 @@ import { version as substoreVersion } from '../../package.json';
import { ENV, HTTP } from '@/vendor/open-api';
import express from '@/vendor/express';
import Gist from '@/utils/gist';
import migrate from '@/utils/migration';
import $ from '@/core/app';
import registerSubscriptionRoutes from './subscriptions';
@@ -124,6 +125,8 @@ async function gistBackup(req, res) {
$.cache = content;
$.persistCache();
}
// perform migration after restoring from gist
migrate();
break;
}
success(res);