From ff3cc778d00220150e0c4a9e3f7353fa364d2868 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sat, 8 Nov 2025 17:34:33 +0000 Subject: [PATCH] Fix TypeScript build errors in scenario service Co-authored-by: whyour <22700758+whyour@users.noreply.github.com> --- back/services/scenario.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/back/services/scenario.ts b/back/services/scenario.ts index a024eafd..b31f6936 100644 --- a/back/services/scenario.ts +++ b/back/services/scenario.ts @@ -151,9 +151,9 @@ export default class ScenarioService { const watcher = chokidar.watch(watchPath, { persistent: true, ignoreInitial: true, - }); + }) as any; - watcher.on('change', async (filePath) => { + watcher.on('change', async (filePath: string) => { this.logger.info( `Variable change detected for scenario ${scenario.name}: ${filePath}`, ); @@ -473,7 +473,7 @@ export default class ScenarioService { } private async createLog(log: Partial): Promise { - await ScenarioLogModel.create(log); + await ScenarioLogModel.create(log as any); } public async getLogs(scenarioId?: number, limit: number = 100): Promise {