diff --git a/src/server/api/endpoints/i/delete-account.ts b/src/server/api/endpoints/i/delete-account.ts index a5e9bfd433..6cab3d1394 100644 --- a/src/server/api/endpoints/i/delete-account.ts +++ b/src/server/api/endpoints/i/delete-account.ts @@ -4,6 +4,7 @@ import User from '../../../../models/user'; import define from '../../define'; import { createDeleteNotesJob, createDeleteDriveFilesJob } from '../../../../queue'; import Message from '../../../../models/messaging-message'; +import Signin from '../../../../models/signin'; export const meta = { requireCredential: true, @@ -44,6 +45,7 @@ export default define(meta, (ps, user) => new Promise(async (res, rej) => { }); Message.remove({ userId: user._id }); + Signin.remove({ userId: user._id }); createDeleteNotesJob(user); createDeleteDriveFilesJob(user);