mirror of
https://github.com/whyour/qinglong.git
synced 2026-07-01 04:40:38 +08:00
修复定时服务启动路径
This commit is contained in:
@@ -3,6 +3,7 @@ import { CronServiceService } from '../protos/cron';
|
||||
import { addCron } from './addCron';
|
||||
import { delCron } from './delCron';
|
||||
import config from '../config';
|
||||
import Logger from '../loaders/logger';
|
||||
|
||||
const server = new Server();
|
||||
server.addService(CronServiceService, { addCron, delCron });
|
||||
@@ -11,5 +12,6 @@ server.bindAsync(
|
||||
ServerCredentials.createInsecure(),
|
||||
() => {
|
||||
server.start();
|
||||
Logger.debug(`✌️ 定时服务启动成功!`);
|
||||
},
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user