* アカウント削除のモデレーションログが動作していないのを修正 * update CHANGELOG
This commit is contained in:
		| @@ -46,7 +46,7 @@ export default class extends Endpoint<typeof meta, typeof paramDef> { // eslint- | ||||
| 				throw new Error('cannot delete a root account'); | ||||
| 			} | ||||
|  | ||||
| 			await this.deleteAccoountService.deleteAccount(user); | ||||
| 			await this.deleteAccoountService.deleteAccount(user, me); | ||||
| 		}); | ||||
| 	} | ||||
| } | ||||
|   | ||||
| @@ -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); | ||||
| 		}); | ||||
| 	} | ||||
| } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 zawa-ch.
					zawa-ch.