Skip to content

Commit

Permalink
chore(mm): change merchant monitoring to use v1
Browse files Browse the repository at this point in the history
  • Loading branch information
alonp99 committed Aug 8, 2024
1 parent 47876af commit f30378e
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ export class BusinessReportControllerInternal {
merchantName,
businessCorrelationId,
reportType,
workflowVersion,
}: CreateBusinessReportDto,
@CurrentProject() currentProjectId: TProjectId,
) {
Expand Down Expand Up @@ -123,7 +124,7 @@ export class BusinessReportControllerInternal {
reportType,
withQualityControl,
callbackUrl: `${env.APP_API_URL}/api/v1/internal/business-reports/hook?businessId=${business.id}&businessReportId=${businessReport.id}`,
workflowVersion: '1',
workflowVersion: workflowVersion || '1',
metadata: {
customerId: customer.id,
customerName: customer.displayName,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,4 +45,12 @@ export class CreateBusinessReportDto {
})
@IsIn(Object.values(BusinessReportType))
reportType!: ObjectValues<typeof BusinessReportType>;

@ApiProperty({
required: false,
type: String,
})
@MinLength(1)
@IsString()
workflowVersion!: string;
}

0 comments on commit f30378e

Please sign in to comment.