Skip to content

Commit

Permalink
bug(api): api compiles
Browse files Browse the repository at this point in the history
  • Loading branch information
tatarco committed Nov 12, 2024
1 parent 8011b6c commit 6abc6eb
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions apps/api/src/app/bridge/usecases/sync/sync.usecase.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,11 @@ import {
UpsertWorkflowPreferencesCommand,
} from '@novu/application-generic';
import {
JSONSchemaDto,
WorkflowCreationSourceEnum,
WorkflowOriginEnum,
WorkflowTypeEnum,
WorkflowPreferencesPartial,
WorkflowTypeEnum,
} from '@novu/shared';
import { DiscoverOutput, DiscoverStepOutput, DiscoverWorkflowOutput, GetActionEnum } from '@novu/framework/internal';

Expand Down Expand Up @@ -237,10 +238,10 @@ export class Sync {
workflowId: workflow.workflowId,
steps: this.mapSteps(workflow.steps, workflowExist),
controls: {
schema: workflow.controls?.schema,
schema: workflow.controls?.schema as unknown as JSONSchemaDto,
},
rawData: workflow,
payloadSchema: workflow.payload?.schema,
payloadSchema: workflow.payload?.schema as unknown as JSONSchemaDto,
type: WorkflowTypeEnum.BRIDGE,
description: this.getWorkflowDescription(workflow),
data: this.castToAnyNotSupportedParam(workflow)?.data,
Expand Down

0 comments on commit 6abc6eb

Please sign in to comment.