summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorMadeline <46743919+MaddyUnderStars@users.noreply.github.com>2023-01-13 13:49:58 +1100
committerMadeline <46743919+MaddyUnderStars@users.noreply.github.com>2023-01-13 13:49:58 +1100
commitf544c6890cdd0c0cddd299ca57a9f4ad1bc867e7 (patch)
tree11cbcb5eee1ab25c20096b61fa2d6670aa8d37bf /src
parentFix setting user premium_type/etc (non-nullable) to null in db when null in c... (diff)
downloadserver-f544c6890cdd0c0cddd299ca57a9f4ad1bc867e7.tar.xz
Fix dumping incoming messages
Diffstat (limited to 'src')
-rw-r--r--src/gateway/events/Message.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gateway/events/Message.ts b/src/gateway/events/Message.ts
index 97bbba83..605bb366 100644
--- a/src/gateway/events/Message.ts
+++ b/src/gateway/events/Message.ts
@@ -46,9 +46,9 @@ export async function Message(this: WebSocket, buffer: WS.Data) {
 	if (process.env.WS_DUMP) {
 		const id = this.session_id || "unknown";
 
-		await fs.mkdir(path.join("dump", this.session_id), { recursive: true });
+		await fs.mkdir(path.join("dump", id), { recursive: true });
 		await fs.writeFile(
-			path.join("dump", this.session_id, `${Date.now()}.in.json`),
+			path.join("dump", id, `${Date.now()}.in.json`),
 			JSON.stringify(data, null, 2),
 		);