mirror of
https://git.mirrors.martin98.com/https://github.com/sub-store-org/Sub-Store.git
synced 2025-09-12 16:23:12 +08:00
fix: Perform migration after restoring data from gist
This commit is contained in:
parent
41f84ddb85
commit
310d797abf
6
backend/dist/cron-sync-artifacts.min.js
vendored
6
backend/dist/cron-sync-artifacts.min.js
vendored
File diff suppressed because one or more lines are too long
6
backend/dist/sub-store-parser.loon.min.js
vendored
6
backend/dist/sub-store-parser.loon.min.js
vendored
File diff suppressed because one or more lines are too long
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "sub-store",
|
"name": "sub-store",
|
||||||
"version": "2.6.2",
|
"version": "2.6.3",
|
||||||
"description": "Advanced Subscription Manager for QX, Loon, Surge, Stash and ShadowRocket.",
|
"description": "Advanced Subscription Manager for QX, Loon, Surge, Stash and ShadowRocket.",
|
||||||
"main": "src/main.js",
|
"main": "src/main.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
@ -7,6 +7,7 @@ import { version as substoreVersion } from '../../package.json';
|
|||||||
import { ENV, HTTP } from '@/vendor/open-api';
|
import { ENV, HTTP } from '@/vendor/open-api';
|
||||||
import express from '@/vendor/express';
|
import express from '@/vendor/express';
|
||||||
import Gist from '@/utils/gist';
|
import Gist from '@/utils/gist';
|
||||||
|
import migrate from '@/utils/migration';
|
||||||
import $ from '@/core/app';
|
import $ from '@/core/app';
|
||||||
|
|
||||||
import registerSubscriptionRoutes from './subscriptions';
|
import registerSubscriptionRoutes from './subscriptions';
|
||||||
@ -124,6 +125,8 @@ async function gistBackup(req, res) {
|
|||||||
$.cache = content;
|
$.cache = content;
|
||||||
$.persistCache();
|
$.persistCache();
|
||||||
}
|
}
|
||||||
|
// perform migration after restoring from gist
|
||||||
|
migrate();
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
success(res);
|
success(res);
|
||||||
|
6
backend/sub-store.min.js
vendored
6
backend/sub-store.min.js
vendored
File diff suppressed because one or more lines are too long
Loading…
x
Reference in New Issue
Block a user