mirror of
https://github.com/karma-riuk/crab-webapp.git
synced 2025-09-06 10:07:54 +02:00
using new backend logic
This commit is contained in:
@@ -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");
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user