1
0
mirror of https://github.com/MisskeyIO/misskey synced 2024-11-30 15:58:16 +09:00

アカウント削除時にメッセージも削除するように

This commit is contained in:
syuilo 2019-02-21 01:47:10 +09:00
parent 3409a51cca
commit 922a657c7e
No known key found for this signature in database
GPG Key ID: BDC4C49D06AB9D69

View File

@ -3,6 +3,7 @@ import * as bcrypt from 'bcryptjs';
import User from '../../../../models/user';
import define from '../../define';
import { createDeleteNotesJob, createDeleteDriveFilesJob } from '../../../../queue';
import Message from '../../../../models/messaging-message';
export const meta = {
requireCredential: true,
@ -42,6 +43,7 @@ export default define(meta, (ps, user) => new Promise(async (res, rej) => {
}
});
Message.remove({ userId: user._id });
createDeleteNotesJob(user);
createDeleteDriveFilesJob(user);