Log even more garbage
Test / test (push) Failing after 54s
Details
Test / test (push) Failing after 54s
Details
This commit is contained in:
parent
b816cb56da
commit
5b5c8fa847
|
|
@ -125,9 +125,14 @@ export default function start(self: ServiceWorkerGlobalScope) {
|
|||
applicationServerKey: applicationServerKey,
|
||||
})
|
||||
|
||||
await (existingSubscriptionId === undefined
|
||||
? postSubscription(newSubscription, db)
|
||||
: putSubscription(newSubscription, existingSubscriptionId.subscriptionId))
|
||||
const stupid =
|
||||
existingSubscriptionId === undefined
|
||||
? postSubscription(newSubscription, db)
|
||||
: putSubscription(
|
||||
newSubscription,
|
||||
existingSubscriptionId.subscriptionId
|
||||
)
|
||||
await stupid
|
||||
|
||||
return newSubscription
|
||||
}
|
||||
|
|
@ -136,6 +141,10 @@ export default function start(self: ServiceWorkerGlobalScope) {
|
|||
subscription: PushSubscription,
|
||||
db: ReturnType<typeof database>
|
||||
) {
|
||||
await sendMessage({
|
||||
message: "Log something you piece of garbage",
|
||||
})
|
||||
|
||||
try {
|
||||
await sendMessage({
|
||||
message: `URL ${process.env.BASE_URL}/api/subscription/`,
|
||||
|
|
|
|||
Loading…
Reference in New Issue