enhance(server): Use job queue for account delete (#7668)
* enhance(server): Use job queue for account delete Fix #5336 * ジョブをひとつに * remove done call * clean up * add User.isDeleted * コミット忘れ * Update 1629512953000-user-is-deleted.ts * show dialog * lint * Update 1629512953000-user-is-deleted.ts
This commit is contained in:
parent
8ab9068d8e
commit
fd1ef4a62d
11 changed files with 135 additions and 3 deletions
|
|
@ -8,6 +8,7 @@ import { exportBlocking } from './export-blocking';
|
|||
import { exportUserLists } from './export-user-lists';
|
||||
import { importFollowing } from './import-following';
|
||||
import { importUserLists } from './import-user-lists';
|
||||
import { deleteAccount } from './delete-account';
|
||||
|
||||
const jobs = {
|
||||
deleteDriveFiles,
|
||||
|
|
@ -17,7 +18,8 @@ const jobs = {
|
|||
exportBlocking,
|
||||
exportUserLists,
|
||||
importFollowing,
|
||||
importUserLists
|
||||
importUserLists,
|
||||
deleteAccount,
|
||||
} as Record<string, Bull.ProcessCallbackFunction<DbJobData> | Bull.ProcessPromiseFunction<DbJobData>>;
|
||||
|
||||
export default function(dbQueue: Bull.Queue<DbJobData>) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue