v3: various improvements and fixes to real-time updates
All checks were successful
Build and Publish Docker Image / build-and-push (push) Successful in 40s
All checks were successful
Build and Publish Docker Image / build-and-push (push) Successful in 40s
This commit is contained in:
@@ -153,7 +153,7 @@ function handleVote(
|
||||
broadcastVoteUpdate(dumpId, newCount, client.userId, action);
|
||||
} catch (err) {
|
||||
const message = err instanceof APIException ? err.message : "Vote failed";
|
||||
socket.send(JSON.stringify({ type: "error", message }));
|
||||
socket.send(JSON.stringify({ type: "error", message, dumpId, action }));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -186,7 +186,7 @@ function handleCommentLike(
|
||||
broadcastCommentLikeUpdate(commentId, newCount, client.userId, action);
|
||||
} catch (err) {
|
||||
const message = err instanceof APIException ? err.message : "Like failed";
|
||||
socket.send(JSON.stringify({ type: "error", message }));
|
||||
socket.send(JSON.stringify({ type: "error", message, commentId, action }));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user