Skip to content

Commit

Permalink
feat: added database health check query (#778)
Browse files Browse the repository at this point in the history
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
  • Loading branch information
philprime and kodiakhq[bot] committed Feb 5, 2024
1 parent 0dc3faa commit 57ad869
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pages/api/health.ts
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ async function fetchHealthcheck(): Promise<HealthCheckResult> {
try {
// Check the database connection
await prisma.$connect();
await prisma.$queryRaw`SELECT 1`;
checks["postgres:connected"] = [
{
status: "ok",
Expand Down

0 comments on commit 57ad869

Please sign in to comment.