🍕
This commit is contained in:
parent
10f6d5980f
commit
69c452a980
19 changed files with 28 additions and 748 deletions
|
|
@ -155,6 +155,8 @@ export async function deleteUser(user: string | mongo.ObjectID | IUser) {
|
|||
u = user as IUser;
|
||||
}
|
||||
|
||||
console.log(u == null ? `User: delete skipped ${user}` : `User: deleting ${u._id}`);
|
||||
|
||||
if (u == null) return;
|
||||
|
||||
// このユーザーのAccessTokenをすべて削除
|
||||
|
|
@ -261,6 +263,8 @@ export async function deleteUser(user: string | mongo.ObjectID | IUser) {
|
|||
await User.remove({
|
||||
_id: u._id
|
||||
});
|
||||
|
||||
console.log(`User: deleted ${u._id}`);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue