efficiency and exception change

This commit is contained in:
Julian Krauser 2024-09-06 10:08:19 +02:00
parent 4048c21c1f
commit 88212ff79b
32 changed files with 121 additions and 124 deletions

View file

@ -19,7 +19,7 @@ export default abstract class RolePermissionService {
return res;
})
.catch((err) => {
throw new InternalException("permissions not found by role");
throw new InternalException("permissions not found by role", err);
});
}
@ -38,7 +38,7 @@ export default abstract class RolePermissionService {
return res;
})
.catch((err) => {
throw new InternalException("permissions not found by roles");
throw new InternalException("permissions not found by roles", err);
});
}
}