mirror of
https://github.com/versia-pub/server.git
synced 2026-04-27 20:59:15 +02:00
refactor(database): 🚚 Only import ORM table data from @versia/kit
This commit is contained in:
parent
2f8b85a299
commit
7a73b8db91
116 changed files with 193 additions and 202 deletions
11
worker.ts
11
worker.ts
|
|
@ -26,11 +26,14 @@ const deliveryQueue = new Queue<{ noteId: string }, void, DeliveryJobType>(
|
|||
},
|
||||
);
|
||||
|
||||
const inboxQueue = new Queue<{ data: Entity }, void, InboxJobType>("inbox", {
|
||||
connection,
|
||||
});
|
||||
export const inboxQueue = new Queue<{ data: Entity }, void, InboxJobType>(
|
||||
"inbox",
|
||||
{
|
||||
connection,
|
||||
},
|
||||
);
|
||||
|
||||
const worker = new Worker<{ noteId: string }, void, DeliveryJobType>(
|
||||
export const worker = new Worker<{ noteId: string }, void, DeliveryJobType>(
|
||||
deliveryQueue.name,
|
||||
async (job) => {
|
||||
switch (job.name) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue