This commit is contained in:
syuilo 2018-05-26 13:25:10 +09:00
parent f91a53d893
commit 65a3bac543

View file

@ -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((