mirror of
https://github.com/versia-pub/server.git
synced 2025-12-06 16:38:19 +01:00
19 lines
371 B
TypeScript
19 lines
371 B
TypeScript
import { Queue } from "bullmq";
|
|
import { connection } from "../../redis.ts";
|
|
|
|
export enum PushJobType {
|
|
Notify = "notify",
|
|
}
|
|
|
|
export type PushJobData = {
|
|
psId: string;
|
|
type: string;
|
|
relatedUserId: string;
|
|
noteId?: string;
|
|
notificationId: string;
|
|
};
|
|
|
|
export const pushQueue = new Queue<PushJobData, void, PushJobType>("push", {
|
|
connection,
|
|
});
|