删除无用代码

This commit is contained in:
hanhh
2021-06-20 20:33:18 +08:00
parent d630f34505
commit 3052b48f51
10 changed files with 29 additions and 23 deletions
-1
View File
@@ -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}`,
);
+1 -7
View 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,
},
];
-1
View File
@@ -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)) {