chore: reverse last commit
This commit is contained in:
parent
e1ff2961e6
commit
9061da4f09
2 changed files with 1 additions and 15 deletions
|
|
@ -5,7 +5,7 @@ import { DateTime } from 'luxon'
|
|||
import { UAParser } from 'ua-parser-js'
|
||||
import webpush, { PushSubscription } from 'web-push'
|
||||
|
||||
const MAX_FAILED_ATTEMPTS = 1
|
||||
const MAX_FAILED_ATTEMPTS = 5
|
||||
|
||||
export const EVENTS = {
|
||||
SYSTEM: 1 << 0,
|
||||
|
|
@ -41,7 +41,6 @@ export class NotificationService {
|
|||
}
|
||||
|
||||
private pushNotification(subscription: PushSubscription, payload: Record<string, any>) {
|
||||
console.log(payload)
|
||||
return webpush.sendNotification(subscription, JSON.stringify(payload))
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -12,7 +12,6 @@ import router from '@adonisjs/core/services/router'
|
|||
import { authThrottle } from './limiters.js'
|
||||
import { throttle } from './limiter.js'
|
||||
import { middleware } from './kernel.js'
|
||||
import redis from '@adonisjs/redis/services/main'
|
||||
|
||||
// TODO: Magic link login
|
||||
// transmit.registerRoutes()
|
||||
|
|
@ -72,15 +71,3 @@ router
|
|||
})
|
||||
.prefix('/internals')
|
||||
// TODO: Token authentication
|
||||
|
||||
router.get('/', async () => {
|
||||
await redis.publish(
|
||||
'jobs_queue',
|
||||
JSON.stringify({
|
||||
type: 1, // Fetch day colles
|
||||
// Format DD/MM/YYYY
|
||||
date: '06/06/2025',
|
||||
class_name: 'MPSI 2',
|
||||
})
|
||||
)
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue