From 9d64759097cf3ebdf60b7111296684af921a2c1c Mon Sep 17 00:00:00 2001 From: Mayank Mishra Date: Fri, 27 Feb 2026 19:03:28 +0530 Subject: [PATCH] hbhj --- src/modules/host/services/host.service.ts | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/modules/host/services/host.service.ts b/src/modules/host/services/host.service.ts index 755290c..7bc8451 100644 --- a/src/modules/host/services/host.service.ts +++ b/src/modules/host/services/host.service.ts @@ -2620,14 +2620,14 @@ export class HostService { return await this.prisma.$transaction(async (tx) => { const hostUserDetail = await tx.user.findFirst({ - where: { id: userId, isActive: true}, + where: { id: userId, isActive: true }, select: { id: true, userRefNumber: true, } }) - if(!hostUserDetail) { + if (!hostUserDetail) { throw new ApiError(404, 'User not found'); } const host = await tx.hostHeader.findFirst({ @@ -2636,11 +2636,11 @@ export class HostService { if (!host) throw new ApiError(404, 'Host not found for the user'); const activityType = await tx.activityTypes.findUnique({ - where: { id: activityTypeXid }, + where: { id: activityTypeXid, isActive: true }, include: { - interests: true, // ✅ correct - energyLevel: true, // ✅ this is correct already - }, + interests: true, // ✅ correct + energyLevel: true, // ✅ this is correct already + }, }); if (!activityType) throw new ApiError(404, 'Activity type not found');