summary refs log tree commit diff
path: root/api/src
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
commitda53ff6c9e1e93048fcecd9998b03c1913a18948 (patch)
tree77bf7e1ebfb7d7f5e39c47bcf96a257d34dd71ad /api/src
parentMerge pull request #526 from erkinalp/patch-3 (diff)
downloadserver-da53ff6c9e1e93048fcecd9998b03c1913a18948.tar.xz
Fix assignment incompatibility
Diffstat (limited to 'api/src')
-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;
 	}