mirror of
https://git.joinsharkey.org/Sharkey/Sharkey.git
synced 2024-11-23 09:03:09 +02:00
✌️
This commit is contained in:
parent
f91a53d893
commit
65a3bac543
1 changed files with 3 additions and 3 deletions
|
@ -169,9 +169,9 @@ export async function deleteUser(user: string | mongo.ObjectID | IUser) {
|
|||
).map(x => deleteAccessToken(x)));
|
||||
|
||||
// このユーザーのNoteをすべて削除
|
||||
//await sequential((
|
||||
// await Note.find({ userId: u._id })
|
||||
//).map(x => () => deleteNote(x)));
|
||||
await sequential((
|
||||
await Note.find({ userId: u._id })
|
||||
).map(x => () => deleteNote(x)));
|
||||
|
||||
// このユーザーのNoteReactionをすべて削除
|
||||
await Promise.all((
|
||||
|
|
Loading…
Reference in a new issue