diff --git a/src/helpers/constant.ts b/src/helpers/constant.ts index 4cd2622..a9cbcd1 100644 --- a/src/helpers/constant.ts +++ b/src/helpers/constant.ts @@ -13,7 +13,7 @@ export const registerEmailBody = (

Loto App Team

`; -export const loginEmailBody = (name: string, lastName: string, otp: string) => ` +export const loginEmailBody = (otp: string, name: string, lastName: string) => `

Hi ${name} ${lastName},

Thank you for logging in to Loto App.

Your login code is: ${otp}

diff --git a/src/middlewares/loger.ts b/src/middlewares/loger.ts index 659dc12..09a3913 100644 --- a/src/middlewares/loger.ts +++ b/src/middlewares/loger.ts @@ -23,7 +23,7 @@ const loger = (req: Request, res: Response, next: NextFunction) => { ${req.originalUrl} ${req.ip} ${req.get('user-agent')} - ${req.body} + ${JSON.stringify(req.body, null, 2)} `; TelegramService.sendMessage(msg);