From ad7b09b43323d0ffc0a8ddabb43e4838a184c697 Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Tue, 24 Feb 2026 13:18:42 -0800 Subject: formatting --- lib/auth.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'lib/auth.ts') diff --git a/lib/auth.ts b/lib/auth.ts index 79c04e9d..c2eca6d4 100644 --- a/lib/auth.ts +++ b/lib/auth.ts @@ -50,8 +50,7 @@ export const jwtStrategy = new jwt.Strategy( let { id } = payload; const wl = { GET: ["/invoice", "/payments"], POST: ["/invoice"] }; - if (id.endsWith("-ro") && wl[m].some((p) => u.startsWith(p))) - id = id.slice(0, -3); + if (id.endsWith("-ro") && wl[m].some((p) => u.startsWith(p))) id = id.slice(0, -3); const user = await getUser(id); next(null, user); -- cgit v1.2.3