update DB info

This commit is contained in:
Ivan 2023-07-16 20:02:59 +03:00
parent 98c01bb8e6
commit 300716812b
Signed by untrusted user who does not match committer: ppechenkoo
GPG Key ID: 0C191B86D9582583

View File

@ -23,12 +23,20 @@ app.get("/devices/drivers", drivers);
app.get("/devices/newdevice", newdevice); app.get("/devices/newdevice", newdevice);
app.get("/devices/newdriver", newdriver); app.get("/devices/newdriver", newdriver);
// const pool = new Pool({
// user: process.env.DB_USER,
// host: process.env.DB_HOST,
// database: process.env.DB_NAME,
// password: process.env.DB_PASSWORD,
// port: process.env.DB_PORT,
// });
const pool = new Pool({ const pool = new Pool({
user: process.env.DB_USER, user: "postgres",
host: process.env.DB_HOST, host: "postgres",
database: process.env.DB_NAME, database: "postgres",
password: process.env.DB_PASSWORD, password: "password",
port: process.env.DB_PORT, port: "5432",
}); });
async function index(req, res) { async function index(req, res) {