summary refs log tree commit diff
path: root/src/webrtc/opcodes/Identify.ts
diff options
context:
space:
mode:
authorEmma [it/its]@Rory& <root@rory.gay>2023-12-11 01:12:54 +0100
committerEmma [it/its]@Rory& <root@rory.gay>2023-12-11 01:12:54 +0100
commit0a8ceb9e6349284e75545a01ffad608b020f78e2 (patch)
tree17a9163f963eddabf9168b0b630096b2f7535b64 /src/webrtc/opcodes/Identify.ts
parentPrettier: use editorconfig (diff)
downloadserver-0a8ceb9e6349284e75545a01ffad608b020f78e2.tar.xz
Actually run prettier dev/emma-refactors
Diffstat (limited to 'src/webrtc/opcodes/Identify.ts')
-rw-r--r--src/webrtc/opcodes/Identify.ts14
1 files changed, 6 insertions, 8 deletions
diff --git a/src/webrtc/opcodes/Identify.ts b/src/webrtc/opcodes/Identify.ts
index 3f65127e..9481a3d6 100644
--- a/src/webrtc/opcodes/Identify.ts
+++ b/src/webrtc/opcodes/Identify.ts
@@ -17,19 +17,17 @@
 */
 
 import { CLOSECODES, Payload, Send, WebSocket } from "@spacebar/gateway";
-import {
-	validateSchema,
-	VoiceIdentifySchema,
-	VoiceState,
-} from "@spacebar/util";
+import { validateSchema, VoiceIdentifySchema, VoiceState } from "@spacebar/util";
 import { endpoint, getClients, VoiceOPCodes, PublicIP } from "@spacebar/webrtc";
 import SemanticSDP from "semantic-sdp";
 const defaultSDP = require("./sdp.json");
 
 export async function onIdentify(this: WebSocket, data: Payload) {
 	clearTimeout(this.readyTimeout);
-	const { server_id, user_id, session_id, token, streams, video } =
-		validateSchema("VoiceIdentifySchema", data.d) as VoiceIdentifySchema;
+	const { server_id, user_id, session_id, token, streams, video } = validateSchema(
+		"VoiceIdentifySchema",
+		data.d
+	) as VoiceIdentifySchema;
 
 	const voiceState = await VoiceState.findOne({
 		where: { guild_id: server_id, user_id, token, session_id },
@@ -44,7 +42,7 @@ export async function onIdentify(this: WebSocket, data: Payload) {
 			setup: "actpass",
 			hash: "sha-256",
 			fingerprint: endpoint.getDTLSFingerprint(),
-		}),
+		})
 	);
 
 	this.client = {