Enhance getAllOnboardingHostApplications to exclude hosts with DRAFT status
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user