diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2019-03-11 09:59:07 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2019-03-11 09:59:07 +0900 |
| commit | ce0d4f77fae0452369ed430dc1866a8ec5f4b2ca (patch) | |
| tree | 14892ed2d8f49a2ece4405653d837d87df4d6916 /src/queue/index.ts | |
| parent | Remove debug code (diff) | |
| download | sharkey-ce0d4f77fae0452369ed430dc1866a8ec5f4b2ca.tar.gz sharkey-ce0d4f77fae0452369ed430dc1866a8ec5f4b2ca.tar.bz2 sharkey-ce0d4f77fae0452369ed430dc1866a8ec5f4b2ca.zip | |
リストのエクスポートをできるように
#4259
Diffstat (limited to 'src/queue/index.ts')
| -rw-r--r-- | src/queue/index.ts | 9 |
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); |