File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -43,7 +43,7 @@ export interface DependenciesConfigInput {
4343 autoDetect ?: boolean ;
4444}
4545export interface ExecuteProcessInput {
46- parameters ?: string ;
46+ parameters ?: Record < string , any > ,
4747 tag ?: string ;
4848 comment ?: string ;
4949 settings ?: ExecuteProcessSettingsInput ;
Original file line number Diff line number Diff line change @@ -496,8 +496,15 @@ export class YepCodeApi {
496496 processIdOrSlug : string ,
497497 data : ScheduledProcessInput
498498 ) : Promise < Schedule > {
499+ const sanitizedData = {
500+ ...data ,
501+ input : {
502+ ...data . input ,
503+ parameters : JSON . stringify ( data . input ?. parameters ) ,
504+ } ,
505+ } ;
499506 return this . request ( "POST" , `/processes/${ processIdOrSlug } /schedule` , {
500- data,
507+ data : sanitizedData ,
501508 } ) ;
502509 }
503510
@@ -579,7 +586,16 @@ export class YepCodeApi {
579586 id : string ,
580587 data : ScheduledProcessInput
581588 ) : Promise < Schedule > {
582- return this . request ( "PATCH" , `/schedules/${ id } ` , { data } ) ;
589+ const sanitizedData = {
590+ ...data ,
591+ input : {
592+ ...data . input ,
593+ parameters : JSON . stringify ( data . input ?. parameters ) ,
594+ } ,
595+ } ;
596+ return this . request ( "PATCH" , `/schedules/${ id } ` , {
597+ data : sanitizedData ,
598+ } ) ;
583599 }
584600
585601 async getVariables (
You can’t perform that action at this time.
0 commit comments