summary refs log tree commit diff
path: root/user.ts
diff options
context:
space:
mode:
authorWlodekM <[email protected]>2024-11-30 11:28:45 +0200
committerWlodekM <[email protected]>2024-11-30 11:28:45 +0200
commit7bf34fb819f12e551ee8e50dcfd7e0369a68eb8e (patch)
tree2810ee013a8c517571118831b90e22ab5506a797 /user.ts
parent3c11cf90f69a69be79dd5adc63c2c8d2de42741d (diff)
parent9d553a0e20011fbcf19ecada6541009e766943d9 (diff)
Merge branch 'dev' into ts-deno-rewrite
Diffstat (limited to 'user.ts')
-rw-r--r--user.ts4
1 files changed, 3 insertions, 1 deletions
diff --git a/user.ts b/user.ts
index 26d7ebb..910e8a4 100644
--- a/user.ts
+++ b/user.ts
@@ -1,12 +1,14 @@
 // because why not make *more files
 
 import { getRandomInt } from "./lib.js";
-import cuid from "cuid";
+import cuid2 from "@paralleldrive/cuid2";
 import type { WebSocket } from 'ws'
 import type { IncomingMessage } from "node:http";
 import type Server from "./server.ts";
 import Timespamp from "./timestamp.ts";
 
+const cuid = cuid2.init()
+
 export default class User {
     id: string = cuid();
     username: string;