修复shell任务id获取

This commit is contained in:
hanhh
2021-07-04 19:12:45 +08:00
parent a8a2a54bea
commit e687511f32
2 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -257,7 +257,7 @@ export default class CronService {
public async log(_id: string) {
const doc = await this.get(_id);
if (doc.log_path) {
return getFileContentByName(`${config.logPath}/${doc.log_path}`);
return getFileContentByName(`${doc.log_path}`);
}
const [, commandStr, url] = doc.command.split(' ');
let logPath = this.getKey(commandStr);