mirror of
https://github.com/whyour/qinglong.git
synced 2025-11-09 16:16:07 +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
|
|
@ -57,7 +57,7 @@ export enum CrontabStatus {
|
|||
'disabled',
|
||||
}
|
||||
|
||||
export interface CronInstance extends Model<Crontab, Crontab>, Crontab { }
|
||||
export interface CronInstance extends Model<Crontab, Crontab>, Crontab {}
|
||||
export const CrontabModel = sequelize.define<CronInstance>('Crontab', {
|
||||
name: {
|
||||
unique: 'compositeIndex',
|
||||
|
|
|
|||
|
|
@ -481,7 +481,8 @@ export default class CronService {
|
|||
const sanitizedLogName = log_name
|
||||
? 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 logDirPath = path.resolve(config.logPath, `${uniqPath}`);
|
||||
if (log_path?.split('/')?.every((x) => x !== uniqPath)) {
|
||||
|
|
|
|||
|
|
@ -334,4 +334,3 @@ const CronLabelModal = ({
|
|||
};
|
||||
|
||||
export { CronLabelModal, CronModal as default };
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user