mirror of
https://git.joinsharkey.org/Sharkey/Sharkey.git
synced 2024-11-14 13:03:09 +02:00
24 lines
653 B
TypeScript
24 lines
653 B
TypeScript
import * as Bull from 'bull';
|
|
import { deleteNotes } from './delete-notes';
|
|
import { deleteDriveFiles } from './delete-drive-files';
|
|
import { exportNotes } from './export-notes';
|
|
import { exportFollowing } from './export-following';
|
|
import { exportMute } from './export-mute';
|
|
import { exportBlocking } from './export-blocking';
|
|
import { exportUserLists } from './export-user-lists';
|
|
|
|
const jobs = {
|
|
deleteNotes,
|
|
deleteDriveFiles,
|
|
exportNotes,
|
|
exportFollowing,
|
|
exportMute,
|
|
exportBlocking,
|
|
exportUserLists
|
|
} as any;
|
|
|
|
export default function(dbQueue: Bull.Queue) {
|
|
for (const [k, v] of Object.entries(jobs)) {
|
|
dbQueue.process(k, v as any);
|
|
}
|
|
}
|