diff options
author | Samuel <34555296+Flam3rboy@users.noreply.github.com> | 2021-11-30 20:12:54 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-11-30 20:12:54 +0100 |
commit | f0edc2f05e233d3e907ae9e2f9393b485cff41c9 (patch) | |
tree | 33bfc28c9265cc9aeeb1d68d893829005b890c6a | |
parent | Merge pull request #527 from erkinalp/patch-3 (diff) | |
parent | Eventually fixed all the errors in the RandomInviteID (diff) | |
download | server-f0edc2f05e233d3e907ae9e2f9393b485cff41c9.tar.xz |
Merge pull request #530 from erkinalp/patch-3
-rw-r--r-- | api/src/util/RandomInviteID.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/api/src/util/RandomInviteID.ts b/api/src/util/RandomInviteID.ts index d8ea8473..7ea344e0 100644 --- a/api/src/util/RandomInviteID.ts +++ b/api/src/util/RandomInviteID.ts @@ -24,7 +24,7 @@ export function snowflakeBasedInvite() { let str = ""; for (let i=0; i < 10; i++) { - str += chars.charAt(BigInt.asUintN(snowflake % base)); + str.concat(chars.charAt(Number(snowflake % base))); snowflake = snowflake / base; } |