From 35f60055afe485ca2a5ec2cd0913e663bc25b368 Mon Sep 17 00:00:00 2001 From: yassinedorbozgithub Date: Sun, 29 Sep 2024 08:06:57 +0100 Subject: [PATCH] fix(api): apply prettier rules --- api/src/user/guards/ability.guard.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/api/src/user/guards/ability.guard.ts b/api/src/user/guards/ability.guard.ts index 2b4b989..05aa950 100644 --- a/api/src/user/guards/ability.guard.ts +++ b/api/src/user/guards/ability.guard.ts @@ -72,9 +72,8 @@ export class Ability implements CanActivate { .map(([_, value]) => value); if ( - permissionsFromRoles.some( - (permission) => - permission[modelFromPathname]?.includes(MethodToAction[method]), + permissionsFromRoles.some((permission) => + permission[modelFromPathname]?.includes(MethodToAction[method]), ) ) { return true;