Merge branch 'mayank' of http://git.wdipl.com/Mayank.Mishra/MinglarBackendNestJS into paritosh
This commit is contained in:
@@ -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');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user