summary refs log tree commit diff
diff options
context:
space:
mode:
authorErkin Alp Güney <erkinalp9035@gmail.com>2021-11-30 21:30:01 +0300
committerGitHub <noreply@github.com>2021-11-30 21:30:01 +0300
commit215f876bb2359fd9617e8c2074c0183461f447d7 (patch)
tree151bc85675f816f43bf848a4bbab72258df48f86
parentMerge pull request #526 from erkinalp/patch-3 (diff)
downloadserver-215f876bb2359fd9617e8c2074c0183461f447d7.tar.xz
Fix assignment incompatibility
-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;
 	}