fix: provide step.parameters to Scheduler triggers

This commit is contained in:
Ali BARIN
2022-09-18 14:58:22 +02:00
parent 4183884537
commit 58565fddae
6 changed files with 15 additions and 18 deletions

View File

@@ -1,18 +1,15 @@
import Triggers from './triggers';
import {
IService,
IApp,
IJSONObject,
IConnection,
IFlow,
IStep,
} from '@automatisch/types';
export default class Scheduler implements IService {
triggers: Triggers;
constructor(
appData: IApp,
connectionData: IJSONObject,
parameters: IJSONObject
) {
this.triggers = new Triggers(connectionData, parameters);
constructor(connection: IConnection, flow: IFlow, step: IStep) {
this.triggers = new Triggers(step.parameters);
}
}