feat: refactoring casl permission checks for recursive nested operations (#778)
* feat: nested casl abilities * fix: remove unused packages * Fixes * Fix createMany broken * Fix lint * Fix lint * Fix lint * Fix lint * Fixes * Fix CommentThread * Fix bugs * Fix lint * Fix bugs * Fixed auto routing * Fixed app path --------- Co-authored-by: Charles Bochet <charles@twenty.com> Co-authored-by: Lucas Bordeau <bordeau.lucas@gmail.com>
This commit is contained in:
@ -15,7 +15,7 @@ export class PrismaHealthIndicator extends HealthIndicator {
|
||||
|
||||
async isDatabaseInstanceHealthy(key: string): Promise<HealthIndicatorResult> {
|
||||
try {
|
||||
await this.prismaService.$queryRaw`SELECT 1`;
|
||||
await this.prismaService.client.$queryRaw`SELECT 1`;
|
||||
return this.getStatus(key, true);
|
||||
} catch (e) {
|
||||
throw new HealthCheckError('Prisma check failed', e);
|
||||
|
||||
Reference in New Issue
Block a user