Fixed DB
This commit is contained in:
@@ -5,7 +5,7 @@ import * as schema from "../../db/schema"
|
||||
|
||||
export default fp(async (server, opts) => {
|
||||
const pool = new Pool({
|
||||
host: "100.102.185.225",
|
||||
host: "10.10.20.10",
|
||||
port: Number(process.env.DB_PORT || 5432),
|
||||
user: "postgres",
|
||||
password: "wJw7aNpEBJdcxgoct6GXNpvY4Cn6ECqu",
|
||||
@@ -24,7 +24,7 @@ export default fp(async (server, opts) => {
|
||||
await pool.end()
|
||||
})
|
||||
|
||||
server.log.info("Drizzle database connected")
|
||||
console.log("Drizzle database connected")
|
||||
})
|
||||
|
||||
declare module "fastify" {
|
||||
|
||||
Reference in New Issue
Block a user