Skip to content

Commit

Permalink
Merge branch 'dev' into sb
Browse files Browse the repository at this point in the history
  • Loading branch information
tomer-shvadron committed Oct 13, 2024
2 parents e49806f + 0f65ddb commit 47688f2
Showing 1 changed file with 14 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import {
ListBusinessReportsDto,
ListBusinessReportsSchema,
} from '@/business-report/list-business-reports.dto';
import { Business, BusinessReportStatus, Prisma } from '@prisma/client';
import { Business, BusinessReportStatus, BusinessReportType, Prisma } from '@prisma/client';
import { ZodValidationPipe } from '@/common/pipes/zod.pipe';
import { CreateBusinessReportDto } from '@/business-report/dto/create-business-report.dto';
import {
Expand Down Expand Up @@ -239,6 +239,19 @@ export class BusinessReportControllerInternal {
where: {
businessId,
batchId,
OR: [
{
type: {
not: {
equals: BusinessReportType.ONGOING_MERCHANT_REPORT_T1,
},
},
},
{
type: BusinessReportType.ONGOING_MERCHANT_REPORT_T1,
status: BusinessReportStatus.completed,
},
],
...(type ? { type } : {}),
...(search
? {
Expand Down

0 comments on commit 47688f2

Please sign in to comment.