stringify because otherwise borken?
This commit is contained in:
@@ -27,7 +27,7 @@ export async function sseRoutes(
|
|||||||
const sendEvent = (event: SseEvent) => {
|
const sendEvent = (event: SseEvent) => {
|
||||||
reply.sse.send({
|
reply.sse.send({
|
||||||
event: event.type,
|
event: event.type,
|
||||||
data: event.data,
|
data: JSON.stringify(event.data),
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user