From e9c375e8b05ce63d09477dd8e5b52e8de47d39a6 Mon Sep 17 00:00:00 2001 From: Adrien Chauve Date: Wed, 25 Sep 2024 14:36:37 +0200 Subject: [PATCH] fix: make a simpler SQL request --- packages/backend/src/services/Healthz.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/backend/src/services/Healthz.js b/packages/backend/src/services/Healthz.js index 89a3efbe3..3a26e69be 100644 --- a/packages/backend/src/services/Healthz.js +++ b/packages/backend/src/services/Healthz.js @@ -2,7 +2,7 @@ const pool = require("../utils/pgpool").getPool(); const query = { // simple query to check if the connexion to the db is up - healthz: () => [`SELECT rol_id FROM back.user_roles LIMIT 1;`, []], + healthz: () => [`SELECT NOW();`, []], }; module.exports.healthz = async () => {