Fix TypeScript build errors in scenario service

Co-authored-by: whyour <22700758+whyour@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot] 2025-11-08 17:34:33 +00:00
parent 37c8e28cba
commit ff3cc778d0

View File

@ -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[]> {