Skip to content

Commit

Permalink
Remove await from not async function
Browse files Browse the repository at this point in the history
  • Loading branch information
J12934 committed Jan 16, 2024
1 parent 3b9019b commit 0dd3cea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion routes/2fa.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ async function status (req: Request, res: Response) {
const { data: user } = data

if (user.totpSecret === '') {
const secret = await otplib.authenticator.generateSecret()
const secret = otplib.authenticator.generateSecret()

res.json({
setup: false,
Expand Down

0 comments on commit 0dd3cea

Please sign in to comment.