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