Enhance getAllOnboardingHostApplications to exclude hosts with DRAFT status

This commit is contained in:
2025-11-25 12:26:01 +05:30
parent 8e25c5c4a2
commit 930605e22e

View File

@@ -672,7 +672,10 @@ export class MinglarService {
async getAllOnboardingHostApplications() {
return await this.prisma.hostHeader.findMany({
where: { isActive: true },
where: {
isActive: true,
hostStatusInternal: { notIn: [HOST_STATUS_INTERNAL.DRAFT] }
},
select: {
id: true,
hostRefNumber: true,