mirror of
https://github.com/spacebarchat/server.git
synced 2024-11-06 10:52:31 +01:00
Eventually fixed all the errors in the RandomInviteID
This commit is contained in:
parent
a4fdaf0352
commit
dabe8f501c
@ -24,7 +24,7 @@ export function snowflakeBasedInvite() {
|
||||
let str = "";
|
||||
for (let i=0; i < 10; i++) {
|
||||
|
||||
str += chars.charAt(BigInt.asUintN(32, snowflake % base));
|
||||
str.concat(chars.charAt(Number(snowflake % base)));
|
||||
snowflake = snowflake / base;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user