Skip to content

Commit

Permalink
refactor(server): streamline logging of received message type
Browse files Browse the repository at this point in the history
  • Loading branch information
csulit committed Oct 29, 2024
1 parent 8a2532c commit 27241a4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -574,7 +574,7 @@ app.get("/api/properties/:id", async (c: Context) => {

app.post("/", async (c: Context) => {
const data = await c.req.json();
console.info("Received message:", JSON.stringify(data, null, 2));
console.info("Received message:", data.type);
await sendMessage({ kv, data, options: { delay: 5000 } });
return c.text("Hono!");
});
Expand Down

0 comments on commit 27241a4

Please sign in to comment.