OpenPanel is an open-source web and product analytics platform, an open-source alternative to Mixpanel with optional self-hosting.
fix(api): use ping instead of keys for healtcheck
Carl-Gerhard Lindesvärd0ffca70782ff
diff --git a/apps/api/src/controllers/healthcheck.controller.ts b/apps/api/src/controllers/healthcheck.controller.tsindex a9a18957a..26dd4b726 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,