Skip to content

Commit

Permalink
Merge pull request #716 from Shelf-nu/fix-initialization-of-pgboss
Browse files Browse the repository at this point in the history
change healthcheck to query first user
  • Loading branch information
DonKoko authored Feb 5, 2024
2 parents 5135d43 + cdd3238 commit 05573e3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/routes/healthcheck.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export async function loader({ request }: LoaderFunctionArgs) {
// if we can connect to the database and make a simple query
// and make a HEAD request to ourselves, then we're good.
await Promise.all([
db.user.count(),
db.user.findFirst(),
fetch(url.toString(), { method: "HEAD" }).then((r) => {
if (!r.ok) return Promise.reject(r);
}),
Expand Down

0 comments on commit 05573e3

Please sign in to comment.