Skip to content

Commit

Permalink
Fix: req body stringify
Browse files Browse the repository at this point in the history
  • Loading branch information
denizyesilirmak committed Dec 17, 2023
1 parent 4618ec7 commit f720774
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/helpers/constant.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export const registerEmailBody = (
<p>Loto App Team</p>
`;

export const loginEmailBody = (name: string, lastName: string, otp: string) => `
export const loginEmailBody = (otp: string, name: string, lastName: string) => `
<h2>Hi ${name} ${lastName},</h2>
<p>Thank you for logging in to Loto App.</p>
<p>Your login code is: <strong>${otp}</strong></p>
Expand Down
2 changes: 1 addition & 1 deletion src/middlewares/loger.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit f720774

Please sign in to comment.