revert db fix
This commit is contained in:
Иван Антонович Козлов 2024-02-01 22:32:41 +00:00
parent c64816adf6
commit 7643b0f957

View File

@ -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) {