This commit is contained in:
paritosh18
2025-11-27 17:27:03 +05:30
3 changed files with 14 additions and 23 deletions

View File

@@ -55,6 +55,7 @@ export const handler = safeHandler(async (
}
const otpResult = await generateOtpHelper(
prismaService, // ⭐ pass Prisma from here
Number(newUser?.id),
newUser?.emailAddress,
'Register',
@@ -62,6 +63,7 @@ export const handler = safeHandler(async (
5
);
if (!otpResult || !otpResult.otp) {
throw new ApiError(500, 'Failed to send OTP');
}