From 243abb0a3d29e8e34e263eec843488e3bdb468a4 Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Thu, 31 Oct 2024 09:34:16 -0700 Subject: biome --- src/routes/(app)/disable2fa/+server.ts | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'src/routes/(app)/disable2fa') diff --git a/src/routes/(app)/disable2fa/+server.ts b/src/routes/(app)/disable2fa/+server.ts index 0afda3b9..81ee2ff2 100644 --- a/src/routes/(app)/disable2fa/+server.ts +++ b/src/routes/(app)/disable2fa/+server.ts @@ -2,12 +2,12 @@ import { error, json } from "@sveltejs/kit"; import { auth, post } from "$lib/utils"; export async function POST({ cookies, request }) { - try { - let body = await request.json(); - let res = await post("/disable2fa", body, auth(cookies)); + try { + const body = await request.json(); + const res = await post("/disable2fa", body, auth(cookies)); - return json(res); - } catch (e) { - error(500, "Problem disabling 2fa"); - } + return json(res); + } catch (e) { + error(500, "Problem disabling 2fa"); + } } -- cgit v1.2.3