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

Method exists

server/src/db/notification-db.ts:138–144  ·  view source on GitHub ↗
(userId: string, type: string, referenceId: string)

Source from the content-addressed store, hash-verified

136 }
137
138 async exists(userId: string, type: string, referenceId: string): Promise<boolean> {
139 const result = await query(
140 `SELECT 1 FROM notifications WHERE recipient_user_id = $1 AND type = $2 AND reference_id = $3 LIMIT 1`,
141 [userId, type, referenceId]
142 );
143 return result.rows.length > 0;
144 }
145}

Callers 6

registerAllJobsFunction · 0.95
get_sessionFunction · 0.80
clear_sessionFunction · 0.80
notifyComplianceChangeFunction · 0.80
notifyExtendedOutagesFunction · 0.80
sendWgWelcomeMessageFunction · 0.80

Calls 1

queryFunction · 0.85

Tested by

no test coverage detected