MCPcopy Create free account
hub / github.com/Kilo-Org/cloud / parseMessageId

Function parseMessageId

services/kilo-chat/src/routes/handler.ts:87–93  ·  view source on GitHub ↗
(c: HonoCtx)

Source from the content-addressed store, hash-verified

85 }
86 return { ok: true as const, data: parsed.data };
87}
88
89function parseMessageId(c: HonoCtx) {
90 const result = ulidSchema.safeParse(c.req.param('messageId'));
91 if (!result.success) {
92 return { ok: false as const, response: c.json({ error: 'Invalid message ID' }, 400) };
93 }
94 return { ok: true as const, data: result.data };
95}
96

Callers 6

handleEditMessageFunction · 0.85
handleDeleteMessageFunction · 0.85
handleExecuteActionFunction · 0.85
handleAddReactionFunction · 0.85
handleRemoveReactionFunction · 0.85

Calls 1

jsonMethod · 0.65

Tested by

no test coverage detected