init
This commit is contained in:
@@ -1,11 +1,12 @@
|
||||
import { STATUS } from '@consts';
|
||||
import { ServerlistModel } from '@db/Serverlist';
|
||||
import { nowSeconds } from 'app/pubUtils/timeUtil';
|
||||
import { checkWhiteList } from 'app/pubUtils/sysUtil';
|
||||
import { nowSeconds } from '@pubUtils/timeUtil';
|
||||
import { checkWhiteList } from '@pubUtils/sysUtil';
|
||||
import { RoleModel } from '@db/Role';
|
||||
import { Context } from 'egg';
|
||||
|
||||
module.exports = () => {
|
||||
return async function checkMainten(ctx, next) {
|
||||
return async function checkMainten(ctx: Context, next: () => Promise<any>) {
|
||||
const { serverId, version } = ctx.request.body;
|
||||
if (serverId) {
|
||||
let server = await ServerlistModel.findByServerId(serverId);
|
||||
|
||||
Reference in New Issue
Block a user