diff options
| author | syuilo <Syuilotan@yahoo.co.jp> | 2021-09-22 17:34:48 +0900 |
|---|---|---|
| committer | syuilo <Syuilotan@yahoo.co.jp> | 2021-09-22 17:34:48 +0900 |
| commit | 9208825975f56bab8aca7ae8d6507f6cfe0f599a (patch) | |
| tree | 2472c0ba06fd4adf6bdb150a1ddb48059b449034 /src/queue/index.ts | |
| parent | enhance(client): リスト、アンテナタイムラインを個別ページ... (diff) | |
| download | sharkey-9208825975f56bab8aca7ae8d6507f6cfe0f599a.tar.gz sharkey-9208825975f56bab8aca7ae8d6507f6cfe0f599a.tar.bz2 sharkey-9208825975f56bab8aca7ae8d6507f6cfe0f599a.zip | |
feat(server): 管理者用アカウント削除API実装
動作確認済み
Resolve #7735
Diffstat (limited to 'src/queue/index.ts')
| -rw-r--r-- | src/queue/index.ts | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/queue/index.ts b/src/queue/index.ts index ee34ed47e4..0ce10a4c60 100644 --- a/src/queue/index.ts +++ b/src/queue/index.ts @@ -173,9 +173,10 @@ export function createImportUserListsJob(user: ThinUser, fileId: DriveFile['id'] }); } -export function createDeleteAccountJob(user: ThinUser) { +export function createDeleteAccountJob(user: ThinUser, opts: { soft?: boolean; }) { return dbQueue.add('deleteAccount', { - user: user + user: user, + soft: opts.soft }, { removeOnComplete: true, removeOnFail: true |