From cf15ed850605ce6e3cd8cb5fa22e6748cdf0bdaa Mon Sep 17 00:00:00 2001 From: Austin Turner Date: Sun, 18 Feb 2024 15:54:09 -0700 Subject: [PATCH] Fix healthcheck endpoint --- apps/api/src/app/utils/response.handlers.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/api/src/app/utils/response.handlers.ts b/apps/api/src/app/utils/response.handlers.ts index 1bdeb5ef6..8862f625b 100644 --- a/apps/api/src/app/utils/response.handlers.ts +++ b/apps/api/src/app/utils/response.handlers.ts @@ -1,4 +1,4 @@ -import { ENV, logger, rollbarServer } from '@jetstream/api-config'; +import { ENV, logger, prisma, rollbarServer } from '@jetstream/api-config'; import { ERROR_MESSAGES, HTTP } from '@jetstream/shared/constants'; import { SalesforceOrg } from '@prisma/client'; import * as express from 'express'; @@ -7,7 +7,7 @@ import { AuthenticationError, NotFoundError, UserFacingError } from './error-han export async function healthCheck(req: express.Request, res: express.Response) { try { - await this.prismaService.$queryRaw`SELECT 1`; + await prisma.$queryRaw`SELECT 1`; res.status(200).json({ error: false, uptime: process.uptime(),