MCPcopy Create free account
hub / github.com/adcontextprotocol/adcp / getDigestByReviewMessage

Function getDigestByReviewMessage

server/src/db/digest-db.ts:381–391  ·  view source on GitHub ↗
(
  channelId: string,
  messageTs: string,
)

Source from the content-addressed store, hash-verified

379 * Find a digest by its Slack review message
380 */
381export async function getDigestByReviewMessage(
382 channelId: string,
383 messageTs: string,
384): Promise<DigestRecord | null> {
385 const result = await query<DigestRecord>(
386 `SELECT ${DIGEST_COLUMNS} FROM weekly_digests
387 WHERE review_channel_id = $1 AND review_message_ts = $2`,
388 [channelId, messageTs],
389 );
390 return result.rows[0] || null;
391}
392
393/**
394 * Link a sent digest to its published perspective article.

Callers 4

getByReviewMessageFunction · 0.85
handleDigestEditReplyFunction · 0.85
handleDigestRegenerateFunction · 0.85
handleDigestApprovalFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected