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,
|
applicationServerKey: applicationServerKey,
|
||||||
})
|
})
|
||||||
|
|
||||||
await (existingSubscriptionId === undefined
|
const stupid =
|
||||||
? postSubscription(newSubscription, db)
|
existingSubscriptionId === undefined
|
||||||
: putSubscription(newSubscription, existingSubscriptionId.subscriptionId))
|
? postSubscription(newSubscription, db)
|
||||||
|
: putSubscription(
|
||||||
|
newSubscription,
|
||||||
|
existingSubscriptionId.subscriptionId
|
||||||
|
)
|
||||||
|
await stupid
|
||||||
|
|
||||||
return newSubscription
|
return newSubscription
|
||||||
}
|
}
|
||||||
|
|
@ -136,6 +141,10 @@ export default function start(self: ServiceWorkerGlobalScope) {
|
||||||
subscription: PushSubscription,
|
subscription: PushSubscription,
|
||||||
db: ReturnType<typeof database>
|
db: ReturnType<typeof database>
|
||||||
) {
|
) {
|
||||||
|
await sendMessage({
|
||||||
|
message: "Log something you piece of garbage",
|
||||||
|
})
|
||||||
|
|
||||||
try {
|
try {
|
||||||
await sendMessage({
|
await sendMessage({
|
||||||
message: `URL ${process.env.BASE_URL}/api/subscription/`,
|
message: `URL ${process.env.BASE_URL}/api/subscription/`,
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue