diff options
| author | syuilo <Syuilotan@yahoo.co.jp> | 2022-01-13 00:48:58 +0900 |
|---|---|---|
| committer | syuilo <Syuilotan@yahoo.co.jp> | 2022-01-13 00:48:58 +0900 |
| commit | 53fb48537d39b0315493dec28388c57fee1848ab (patch) | |
| tree | 5998b5e32b00344733d799d2c511f673d8a3a0d6 /packages/backend/src/queue/index.ts | |
| parent | feat: emojis import (diff) | |
| download | sharkey-53fb48537d39b0315493dec28388c57fee1848ab.tar.gz sharkey-53fb48537d39b0315493dec28388c57fee1848ab.tar.bz2 sharkey-53fb48537d39b0315493dec28388c57fee1848ab.zip | |
git add忘れ
Diffstat (limited to 'packages/backend/src/queue/index.ts')
| -rw-r--r-- | packages/backend/src/queue/index.ts | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/packages/backend/src/queue/index.ts b/packages/backend/src/queue/index.ts index 2fbc1b1c01..f9994c3b59 100644 --- a/packages/backend/src/queue/index.ts +++ b/packages/backend/src/queue/index.ts @@ -213,6 +213,16 @@ export function createImportUserListsJob(user: ThinUser, fileId: DriveFile['id'] }); } +export function createImportCustomEmojisJob(user: ThinUser, fileId: DriveFile['id']) { + return dbQueue.add('importCustomEmojis', { + user: user, + fileId: fileId, + }, { + removeOnComplete: true, + removeOnFail: true, + }); +} + export function createDeleteAccountJob(user: ThinUser, opts: { soft?: boolean; } = {}) { return dbQueue.add('deleteAccount', { user: user, |