修复获取日志判断

This commit is contained in:
whyour 2021-11-11 22:50:28 +08:00
parent 9936097086
commit 62fca3dfe2

View File

@ -352,6 +352,10 @@ export default class CronService {
public async log(_id: string) { public async log(_id: string) {
const doc = await this.get(_id); const doc = await this.get(_id);
if (!doc) {
return '';
}
if (doc.log_path) { if (doc.log_path) {
return getFileContentByName(`${doc.log_path}`); return getFileContentByName(`${doc.log_path}`);
} }