Skip to content
This repository has been archived by the owner on Jul 7, 2024. It is now read-only.

Commit

Permalink
fix group replace
Browse files Browse the repository at this point in the history
  • Loading branch information
NextFire committed Apr 4, 2024
1 parent 6ebfcf7 commit dc9e18c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
}));

Expand Down

0 comments on commit dc9e18c

Please sign in to comment.