mirror of
https://github.com/whyour/qinglong.git
synced 2026-07-01 04:40:38 +08:00
删除无用代码
This commit is contained in:
@@ -34,7 +34,6 @@ export default (app: Router) => {
|
||||
async (req: Request, res: Response, next: NextFunction) => {
|
||||
const logger: Logger = Container.get('logger');
|
||||
try {
|
||||
console.log(req.params.file);
|
||||
const content = getFileContentByName(
|
||||
`${config.scriptPath}${req.params.file}`,
|
||||
);
|
||||
|
||||
@@ -18,13 +18,7 @@ const initData = [
|
||||
name: '删除日志',
|
||||
command: 'ql rmlog 7',
|
||||
schedule: '30 7 */7 * *',
|
||||
status: CrontabStatus.idle,
|
||||
},
|
||||
{
|
||||
name: '互助码',
|
||||
command: 'ql code',
|
||||
schedule: '30 7 * * *',
|
||||
status: CrontabStatus.idle,
|
||||
status: CrontabStatus.disabled,
|
||||
},
|
||||
];
|
||||
|
||||
|
||||
@@ -214,7 +214,6 @@ export default class EnvService {
|
||||
{ status: { $ne: EnvStatus.disabled }, name: { $exists: true } },
|
||||
);
|
||||
const groups = _.groupBy(envs, 'name');
|
||||
console.log(groups);
|
||||
let env_string = '';
|
||||
for (const key in groups) {
|
||||
if (Object.prototype.hasOwnProperty.call(groups, key)) {
|
||||
|
||||
Reference in New Issue
Block a user