summary refs log tree commit diff
path: root/api
diff options
context:
space:
mode:
authorErkin Alp Güney <erkinalp9035@gmail.com>2021-11-30 22:04:48 +0300
committerErkin Alp Güney <erkinalp9035@gmail.com>2021-11-30 22:04:48 +0300
commitdabe8f501ca95c8c437228b342c08ccf9e8f7d4a (patch)
tree2432860302653bd5fa03d9a105a0634eda8e3d90 /api
parentfix the bigint asintn (diff)
downloadserver-dabe8f501ca95c8c437228b342c08ccf9e8f7d4a.tar.xz
Eventually fixed all the errors in the RandomInviteID
Diffstat (limited to 'api')
-rw-r--r--api/src/util/RandomInviteID.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/api/src/util/RandomInviteID.ts b/api/src/util/RandomInviteID.ts
index 410c5169..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(32, snowflake % base));
+		str.concat(chars.charAt(Number(snowflake % base)));
 		snowflake = snowflake / base;
 	}