(db: Database, namespace: string, endpoint: string)
| 49 | } |
| 50 | |
| 51 | export 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 | |
| 57 | export function getPushSubscriptionsByNamespace( |
| 58 | db: Database, |
no test coverage detected