mirror of
https://github.com/versia-pub/server.git
synced 2025-12-06 16:38:19 +01:00
20 lines
366 B
TypeScript
20 lines
366 B
TypeScript
|
|
import { Queue } from "bullmq";
|
||
|
|
import { connection } from "../../redis.ts";
|
||
|
|
|
||
|
|
export enum RelationshipJobType {
|
||
|
|
Unmute = "unmute",
|
||
|
|
}
|
||
|
|
|
||
|
|
export type RelationshipJobData = {
|
||
|
|
ownerId: string;
|
||
|
|
subjectId: string;
|
||
|
|
};
|
||
|
|
|
||
|
|
export const relationshipQueue = new Queue<
|
||
|
|
RelationshipJobData,
|
||
|
|
void,
|
||
|
|
RelationshipJobType
|
||
|
|
>("relationships", {
|
||
|
|
connection,
|
||
|
|
});
|