mirror of
https://github.com/whyour/qinglong.git
synced 2025-11-10 00:26:09 +08:00
Apply prettier formatting to modified files
Co-authored-by: whyour <22700758+whyour@users.noreply.github.com>
This commit is contained in:
parent
75d7ad4e02
commit
71073b8670
|
|
@ -481,7 +481,8 @@ export default class CronService {
|
||||||
const sanitizedLogName = log_name
|
const sanitizedLogName = log_name
|
||||||
? log_name.replace(/[\/\\\.]/g, '_').replace(/^_+|_+$/g, '')
|
? log_name.replace(/[\/\\\.]/g, '_').replace(/^_+|_+$/g, '')
|
||||||
: '';
|
: '';
|
||||||
const uniqPath = sanitizedLogName || (await getUniqPath(command, `${id}`));
|
const uniqPath =
|
||||||
|
sanitizedLogName || (await getUniqPath(command, `${id}`));
|
||||||
const logTime = dayjs().format('YYYY-MM-DD-HH-mm-ss-SSS');
|
const logTime = dayjs().format('YYYY-MM-DD-HH-mm-ss-SSS');
|
||||||
const logDirPath = path.resolve(config.logPath, `${uniqPath}`);
|
const logDirPath = path.resolve(config.logPath, `${uniqPath}`);
|
||||||
if (log_path?.split('/')?.every((x) => x !== uniqPath)) {
|
if (log_path?.split('/')?.every((x) => x !== uniqPath)) {
|
||||||
|
|
|
||||||
|
|
@ -334,4 +334,3 @@ const CronLabelModal = ({
|
||||||
};
|
};
|
||||||
|
|
||||||
export { CronLabelModal, CronModal as default };
|
export { CronLabelModal, CronModal as default };
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user