summary refs log tree commit diff
diff options
context:
space:
mode:
authorSamuel <34555296+Flam3rboy@users.noreply.github.com>2021-11-30 19:51:59 +0100
committerGitHub <noreply@github.com>2021-11-30 19:51:59 +0100
commitce9b3b1d6d0e211545f07f1ab1fe37ecc8934fd4 (patch)
treeab9c1fb5cf16cc08be675fa5492be41f0e67621e
parentMerge pull request #528 from Thesourtimes/master (diff)
parentFix assignment incompatibility (diff)
downloadserver-ce9b3b1d6d0e211545f07f1ab1fe37ecc8934fd4.tar.xz
Merge pull request #527 from erkinalp/patch-3
-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 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;
 	}