sending the hostId in the get stepper api
This commit is contained in:
@@ -39,6 +39,7 @@ export const handler = safeHandler(async (
|
||||
data: {
|
||||
stepper: host?.host?.stepper || null,
|
||||
emailAddress: host.user?.emailAddress || null,
|
||||
hostId: host.user?.userRefNumber || null,
|
||||
},
|
||||
}),
|
||||
};
|
||||
|
||||
@@ -415,8 +415,8 @@ export class HostService {
|
||||
});
|
||||
|
||||
const user = await this.prisma.user.findUnique({
|
||||
where: { id: user_xid },
|
||||
select: { id: true, emailAddress: true },
|
||||
where: { id: user_xid, isActive: true },
|
||||
select: { id: true, emailAddress: true, userRefNumber: true },
|
||||
});
|
||||
return { host, user };
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user