fix api role

This commit is contained in:
AdisakKanthawilang 2024-06-11 18:27:54 +07:00
parent 543ef19664
commit ba065b4299
4 changed files with 71 additions and 20 deletions

View file

@ -188,7 +188,7 @@ export class ProfileAbilityController extends Controller {
await this.profileAbilityHistoryRepo.delete({
profileAbilityId: abilityId,
});
const result = await this.profileAbilityRepo.delete({ id: abilityId });
if (result.affected == undefined || result.affected <= 0)