Skip to content

Commit

Permalink
Fix healthcheck endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
paustint committed Feb 18, 2024
1 parent 17e52d9 commit cf15ed8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions apps/api/src/app/utils/response.handlers.ts
Original file line number Diff line number Diff line change
@@ -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';
Expand All @@ -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(),
Expand Down

0 comments on commit cf15ed8

Please sign in to comment.