summary refs log tree commit diff
path: root/api
diff options
context:
space:
mode:
authorSamuel <34555296+Flam3rboy@users.noreply.github.com>2021-11-30 20:12:54 +0100
committerGitHub <noreply@github.com>2021-11-30 20:12:54 +0100
commit125bb01eb74d7e18595a1180ee9a47b750ab2e95 (patch)
tree29817a23ba5e55fbb134d77fae8b3ac07c3c256c /api
parentMerge pull request #527 from erkinalp/patch-3 (diff)
parentEventually fixed all the errors in the RandomInviteID (diff)
downloadserver-125bb01eb74d7e18595a1180ee9a47b750ab2e95.tar.xz
Merge pull request #530 from erkinalp/patch-3
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 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;
 	}