diff options
author | Erkin Alp Güney <erkinalp9035@gmail.com> | 2021-11-30 21:30:01 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-11-30 21:30:01 +0300 |
commit | 215f876bb2359fd9617e8c2074c0183461f447d7 (patch) | |
tree | 151bc85675f816f43bf848a4bbab72258df48f86 | |
parent | Merge pull request #526 from erkinalp/patch-3 (diff) | |
download | server-215f876bb2359fd9617e8c2074c0183461f447d7.tar.xz |
Fix assignment incompatibility
-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 30ba3252..d8ea8473 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(snowflake % base); + str += chars.charAt(BigInt.asUintN(snowflake % base)); snowflake = snowflake / base; } |