From a97136c99ddcde6d18c7784bd459e89f5dd826d0 Mon Sep 17 00:00:00 2001 From: Ivan Date: Mon, 24 Jul 2023 07:54:55 +0300 Subject: [PATCH] fix db --- server.js | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/server.js b/server.js index c48ea26..339ca34 100644 --- a/server.js +++ b/server.js @@ -37,17 +37,17 @@ app.get("/devices", devices); app.get("/devices/drivers", drivers); app.get("/devices/update", update); -const DB_User = process.env.DB_USER; -const DB_Password = process.env.DB_PASSWORD; -const DB_Host = process.env.DB_HOST; -const DB_Port = process.env.DB_PORT; -const DB_Name = process.env.DB_NAME; +// const DB_User = process.env.DB_USER; +// const DB_Password = process.env.DB_PASSWORD; +// const DB_Host = process.env.DB_HOST; +// const DB_Port = process.env.DB_PORT; +// const DB_Name = process.env.DB_NAME; -// const DB_User = "postgres"; -// const DB_Password = "password"; -// const DB_Host = "postgres"; -// const DB_Port = "5432"; -// const DB_Name = "postgres"; +const DB_User = "postgres"; +const DB_Password = "password"; +const DB_Host = "postgres"; +const DB_Port = "5432"; +const DB_Name = "postgres"; async function index(req, res) { var templateData = {