MCPcopy
hub / github.com/codedogQBY/ReadAny / getUnreadFeedbackCount

Function getUnreadFeedbackCount

packages/core/src/feedback/feedback-service.ts:533–539  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

531 * Used to drive the red-dot badge on Profile / Settings menus.
532 */
533export async function getUnreadFeedbackCount(): Promise<number> {
534 const db = await getDB();
535 const rows = await db.select<{ count: number }>(
536 "SELECT COUNT(*) as count FROM feedback WHERE has_new_reply = 1",
537 );
538 return rows[0]?.count ?? 0;
539}
540
541/**
542 * Refresh feedback status from the worker for all locally-known issues, then

Callers 2

FeedbackScreenFunction · 0.90

Calls 1

getDBFunction · 0.90

Tested by

no test coverage detected