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

Function getPushSubscriptionsByNamespace

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

Source from the content-addressed store, hash-verified

55}
56
57export function getPushSubscriptionsByNamespace(
58 db: Database,
59 namespace: string
60): StoredPushSubscription[] {
61 const rows = db.prepare(
62 'SELECT * FROM push_subscriptions WHERE namespace = ? ORDER BY created_at DESC'
63 ).all(namespace) as DbPushSubscriptionRow[]
64 return rows.map(toStoredPushSubscription)
65}

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected