From dc9e18c0a6be36753448fbb46a0b7fa3dc574926 Mon Sep 17 00:00:00 2001 From: NextFire Date: Thu, 4 Apr 2024 09:04:14 -0400 Subject: [PATCH] fix group replace --- main.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.ts b/main.ts index abec8d6..6fb71fe 100644 --- a/main.ts +++ b/main.ts @@ -11,7 +11,7 @@ app.post("/prelogin", async (c) => { const username = payload.username; const groups = payload.oidc_custom_fields.groups.map((g: string) => ({ - name: g.slice(1).replace("discord-", ""), + name: g.replace("discord-", ""), type: 2, }));