MCPcopy Create free account
hub / github.com/tiann/hapi / removePushSubscription

Function removePushSubscription

hub/src/store/pushSubscriptions.ts:51–55  ·  view source on GitHub ↗
(db: Database, namespace: string, endpoint: string)

Source from the content-addressed store, hash-verified

49}
50
51export function removePushSubscription(db: Database, namespace: string, endpoint: string): void {
52 db.prepare(
53 'DELETE FROM push_subscriptions WHERE namespace = ? AND endpoint = ?'
54 ).run(namespace, endpoint)
55}
56
57export function getPushSubscriptionsByNamespace(
58 db: Database,

Callers 1

Calls 1

runMethod · 0.45

Tested by

no test coverage detected