diff --git a/src/models/user.ts b/src/models/user.ts index 56ca0c625f..f18206120f 100644 --- a/src/models/user.ts +++ b/src/models/user.ts @@ -258,6 +258,9 @@ export async function deleteUser(user: string | mongo.ObjectID | IUser) { ).map(x => deleteNotification(x))); // このユーザーを削除 + await User.remove({ + _id: u._id + }); } /**