mirror of
https://github.com/whyour/qinglong.git
synced 2025-11-10 00:26:09 +08:00
Fix TypeScript build errors in scenario service
Co-authored-by: whyour <22700758+whyour@users.noreply.github.com>
This commit is contained in:
parent
37c8e28cba
commit
ff3cc778d0
|
|
@ -151,9 +151,9 @@ export default class ScenarioService {
|
||||||
const watcher = chokidar.watch(watchPath, {
|
const watcher = chokidar.watch(watchPath, {
|
||||||
persistent: true,
|
persistent: true,
|
||||||
ignoreInitial: true,
|
ignoreInitial: true,
|
||||||
});
|
}) as any;
|
||||||
|
|
||||||
watcher.on('change', async (filePath) => {
|
watcher.on('change', async (filePath: string) => {
|
||||||
this.logger.info(
|
this.logger.info(
|
||||||
`Variable change detected for scenario ${scenario.name}: ${filePath}`,
|
`Variable change detected for scenario ${scenario.name}: ${filePath}`,
|
||||||
);
|
);
|
||||||
|
|
@ -473,7 +473,7 @@ export default class ScenarioService {
|
||||||
}
|
}
|
||||||
|
|
||||||
private async createLog(log: Partial<ScenarioLog>): Promise<void> {
|
private async createLog(log: Partial<ScenarioLog>): Promise<void> {
|
||||||
await ScenarioLogModel.create(log);
|
await ScenarioLogModel.create(log as any);
|
||||||
}
|
}
|
||||||
|
|
||||||
public async getLogs(scenarioId?: number, limit: number = 100): Promise<ScenarioLog[]> {
|
public async getLogs(scenarioId?: number, limit: number = 100): Promise<ScenarioLog[]> {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user