diff --git a/apps/api/src/controllers/healthcheck.controller.ts b/apps/api/src/controllers/healthcheck.controller.ts index a9a18957..26dd4b72 100644 --- a/apps/api/src/controllers/healthcheck.controller.ts +++ b/apps/api/src/controllers/healthcheck.controller.ts @@ -21,7 +21,7 @@ export async function healthcheck( request: FastifyRequest, reply: FastifyReply, ) { - const redisRes = await withTimings(getRedisCache().keys('op:buffer:*')); + const redisRes = await withTimings(getRedisCache().ping()); const dbRes = await withTimings(db.project.findFirst()); const queueRes = await withTimings(eventsQueue.getCompleted()); const chRes = await withTimings( @@ -34,7 +34,7 @@ export async function healthcheck( reply.status(status).send({ redis: redisRes ? { - ok: !!redisRes.data.length, + ok: redisRes.data === 'PONG', time: `${redisRes.time}ms`, } : null,