batching events
This commit is contained in:
committed by
Carl-Gerhard Lindesvärd
parent
244aa3b0d3
commit
5e225b7ae6
9
apps/worker/src/jobs/sessions.ts
Normal file
9
apps/worker/src/jobs/sessions.ts
Normal file
@@ -0,0 +1,9 @@
|
||||
import type { Job } from 'bullmq';
|
||||
|
||||
import type { SessionsQueuePayload } from '@openpanel/queue/src/queues';
|
||||
|
||||
import { createSessionEnd } from './events.create-session-end';
|
||||
|
||||
export async function sessionsJob(job: Job<SessionsQueuePayload>) {
|
||||
return await createSessionEnd(job);
|
||||
}
|
||||
Reference in New Issue
Block a user