增加订阅api

This commit is contained in:
whyour
2022-05-10 19:54:05 +08:00
parent 468ff9c1af
commit 419c5a7c5b
4 changed files with 339 additions and 0 deletions
+3
View File
@@ -8,6 +8,7 @@ import { AppModel } from '../data/open';
import { AuthModel } from '../data/auth';
import { sequelize } from '../data';
import { fileExist } from '../config/util';
import { SubscriptionModel } from '../data/subscription';
import config from '../config';
export default async () => {
@@ -17,6 +18,8 @@ export default async () => {
await AppModel.sync();
await AuthModel.sync();
await EnvModel.sync();
await SubscriptionModel.sync();
await sequelize.sync();
// try {