From 7643b0f957fae4da59ffe1d91cefbc21bc5640aa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=98=D0=B2=D0=B0=D0=BD=20=D0=90=D0=BD=D1=82=D0=BE=D0=BD?= =?UTF-8?q?=D0=BE=D0=B2=D0=B8=D1=87=20=D0=9A=D0=BE=D0=B7=D0=BB=D0=BE=D0=B2?= Date: Thu, 1 Feb 2024 22:32:41 +0000 Subject: [PATCH] revert dcc70199b6101ec6cd308378172b44efc0bda358 revert db fix --- server.js | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/server.js b/server.js index e547beb..e6f12da 100644 --- a/server.js +++ b/server.js @@ -138,17 +138,17 @@ app.post("/videos/restart", async (req, res) => { }); }); -// 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 = process.env.POSTGRES_PASSWORD; -const DB_Host = "postgres"; -const DB_Port = "5432"; -const DB_Name = "postgres"; +// const DB_User = "postgres"; +// const DB_Password = process.env.POSTGRES_PASSWORD; +// const DB_Host = "postgres"; +// const DB_Port = "5432"; +// const DB_Name = "postgres"; async function index(req, res) { if (req.session.userId === undefined) {