From d310ada8f645ee906a61d9a222eae6b9ffdfaec8 Mon Sep 17 00:00:00 2001 From: Hager Eldakroury Date: Fri, 23 Jul 2021 01:23:58 +0200 Subject: [PATCH] fix(analysis): Misplaced line --- analysis/index.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/analysis/index.ts b/analysis/index.ts index e6011ea..dd8441e 100644 --- a/analysis/index.ts +++ b/analysis/index.ts @@ -111,8 +111,11 @@ io.on("connection", (socket: any) => { "emotion update", JSON.stringify(instructors[meeting]) ); + io.to(meeting).emit( + "emotion update", + JSON.stringify(instructors[meeting]) + ); } } - io.to(meeting).emit("emotion update", JSON.stringify(instructors[meeting])); }); });