Fix(backend): アカウント削除のモデレーションログが動作していないのを修正 (#14996) (#14997)

* アカウント削除のモデレーションログが動作していないのを修正

* update CHANGELOG
This commit is contained in:
zawa-ch.
2024-11-19 21:12:40 +09:00
committed by GitHub
parent 6c5d3113c6
commit 763c708253
3 changed files with 4 additions and 3 deletions

View File

@@ -33,13 +33,13 @@ export default class extends Endpoint<typeof meta, typeof paramDef> { // eslint-
private deleteAccountService: DeleteAccountService,
) {
super(meta, paramDef, async (ps) => {
super(meta, paramDef, async (ps, me) => {
const user = await this.usersRepository.findOneByOrFail({ id: ps.userId });
if (user.isDeleted) {
return;
}
await this.deleteAccountService.deleteAccount(user);
await this.deleteAccountService.deleteAccount(user, me);
});
}
}