using new backend logic

This commit is contained in:
Karma Riuk
2025-05-10 22:33:24 +02:00
parent 9e69d376c6
commit 4d87a31d70
5 changed files with 59 additions and 56 deletions

View File

@ -77,6 +77,7 @@ router.post("/submit/comments", upload.single("file"), async (req, res) => {
const header = req.get("X-Socket-Id");
const socketId = header && header.trim();
if (socketId && io.sockets.sockets.has(socketId)) {
io.to(socketId).emit("successul-upload");
io.to(socketId).emit("started-processing");
}