mirror of
https://iceshrimp.dev/limepotato/jormungandr-bite.git
synced 2024-11-23 02:17:40 -07:00
アカウント削除時にサインイン履歴も削除するように
This commit is contained in:
parent
472b9aee5f
commit
8f6b8d2f78
1 changed files with 2 additions and 0 deletions
|
@ -4,6 +4,7 @@ import User from '../../../../models/user';
|
||||||
import define from '../../define';
|
import define from '../../define';
|
||||||
import { createDeleteNotesJob, createDeleteDriveFilesJob } from '../../../../queue';
|
import { createDeleteNotesJob, createDeleteDriveFilesJob } from '../../../../queue';
|
||||||
import Message from '../../../../models/messaging-message';
|
import Message from '../../../../models/messaging-message';
|
||||||
|
import Signin from '../../../../models/signin';
|
||||||
|
|
||||||
export const meta = {
|
export const meta = {
|
||||||
requireCredential: true,
|
requireCredential: true,
|
||||||
|
@ -44,6 +45,7 @@ export default define(meta, (ps, user) => new Promise(async (res, rej) => {
|
||||||
});
|
});
|
||||||
|
|
||||||
Message.remove({ userId: user._id });
|
Message.remove({ userId: user._id });
|
||||||
|
Signin.remove({ userId: user._id });
|
||||||
createDeleteNotesJob(user);
|
createDeleteNotesJob(user);
|
||||||
createDeleteDriveFilesJob(user);
|
createDeleteDriveFilesJob(user);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue