summary refs log tree commit diff
diff options
context:
space:
mode:
authorErkin Alp Güney <erkinalp9035@gmail.com>2021-11-30 21:53:50 +0300
committerErkin Alp Güney <erkinalp9035@gmail.com>2021-11-30 21:53:50 +0300
commit822bf90fb6b4713bea685d2fb95b24cce4ae579f (patch)
treea188b2f6b314564a211a259f0bc3a3641ea39bea
parentFix assignment incompatibility (diff)
downloadserver-822bf90fb6b4713bea685d2fb95b24cce4ae579f.tar.xz
fix the bigint asintn
-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..410c5169 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 += chars.charAt(BigInt.asUintN(32, snowflake % base));
 		snowflake = snowflake / base;
 	}