diff --git a/src/models/user.ts b/src/models/user.ts index 56ca0c625..f18206120 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 + }); } /**