From 97effaa1dd0b31f4963835580470859e544ec723 Mon Sep 17 00:00:00 2001 From: Philipp Fruck Date: Wed, 5 Jan 2022 15:59:14 +0100 Subject: [PATCH] :memo: fix wrongly ordered comments --- packages/backend/src/controllers/authentication/index.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/backend/src/controllers/authentication/index.ts b/packages/backend/src/controllers/authentication/index.ts index de63acb4..052c4887 100644 --- a/packages/backend/src/controllers/authentication/index.ts +++ b/packages/backend/src/controllers/authentication/index.ts @@ -162,7 +162,7 @@ export async function authAttestationGetRequest(req: Request, res: Response, nex userDoc.currentChallenge = attestationOptions.challenge; userDoc.save(); - // 4. Done + // 6. Done const response = new ApiSuccess(200, attestationOptions); next(response); @@ -229,7 +229,7 @@ export async function authAttestationGetRequest(req: Request, res: Response, nex throw new ApiError(400, error.message); } finally { - // 8. Delete challenge from user. To try again, it is necessary to request a new challenge + // 9. Delete challenge from user. To try again, it is necessary to request a new challenge userDoc.currentChallenge = undefined; userDoc.save(); }