リストのエクスポートをできるように

#4259
This commit is contained in:
syuilo 2019-03-11 09:59:07 +09:00
parent 0fff2e4f16
commit ce0d4f77fa
No known key found for this signature in database
GPG key ID: BDC4C49D06AB9D69
6 changed files with 105 additions and 0 deletions

View file

@ -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);