(
db: Database,
namespace: string
)
| 55 | } |
| 56 | |
| 57 | export 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 | } |
no outgoing calls
no test coverage detected