summaryrefslogtreecommitdiff
path: root/src/queue/index.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/queue/index.ts')
-rw-r--r--src/queue/index.ts9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/queue/index.ts b/src/queue/index.ts
index 83cebe247b..00a4a48f14 100644
--- a/src/queue/index.ts
+++ b/src/queue/index.ts
@@ -136,6 +136,15 @@ export function createExportBlockingJob(user: ILocalUser) {
});
}
+export function createExportUserListsJob(user: ILocalUser) {
+ return dbQueue.add('exportUserLists', {
+ user: user
+ }, {
+ removeOnComplete: true,
+ removeOnFail: true
+ });
+}
+
export default function() {
if (!program.onlyServer) {
deliverQueue.process(128, processDeliver);