diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2019-03-12 00:34:19 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2019-03-12 00:34:19 +0900 |
| commit | c932f7a25bfd0944b21fc026a647fa1d04750418 (patch) | |
| tree | b10f9725ab30b094b1ac95ba980881e6d9a09888 /src/queue/index.ts | |
| parent | Refactor: Extract downloadTextFile function (diff) | |
| download | sharkey-c932f7a25bfd0944b21fc026a647fa1d04750418.tar.gz sharkey-c932f7a25bfd0944b21fc026a647fa1d04750418.tar.bz2 sharkey-c932f7a25bfd0944b21fc026a647fa1d04750418.zip | |
Resolve #1736
Diffstat (limited to 'src/queue/index.ts')
| -rw-r--r-- | src/queue/index.ts | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/queue/index.ts b/src/queue/index.ts index 09e0ad59c9..44b24b66cb 100644 --- a/src/queue/index.ts +++ b/src/queue/index.ts @@ -146,6 +146,16 @@ export function createExportUserListsJob(user: ILocalUser) { }); } +export function createImportFollowingJob(user: ILocalUser, fileId: IDriveFile['_id']) { + return dbQueue.add('importFollowing', { + user: user, + fileId: fileId + }, { + removeOnComplete: true, + removeOnFail: true + }); +} + export function createImportUserListsJob(user: ILocalUser, fileId: IDriveFile['_id']) { return dbQueue.add('importUserLists', { user: user, |