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 | da53ff6c9e1e93048fcecd9998b03c1913a18948 (patch) | |
tree | 77bf7e1ebfb7d7f5e39c47bcf96a257d34dd71ad /api/src | |
parent | Merge pull request #526 from erkinalp/patch-3 (diff) | |
download | server-da53ff6c9e1e93048fcecd9998b03c1913a18948.tar.xz |
Fix assignment incompatibility
Diffstat (limited to 'api/src')
-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; } |