Change shared.ts

This commit is contained in:
Moritz Utcke
2023-05-18 15:15:22 +04:00
parent f0999f3a97
commit f14aa4d7c6
3 changed files with 13 additions and 17 deletions

View File

@@ -3,13 +3,7 @@ import knex, { Knex } from "knex";
export function dbOpen(): Knex {
const db = knex({
client: 'pg',
connection: {
host : process.env.DB_CONNECTION,
port : Number(process.env.DB_PORT),
user : 'main',
password : 'hHMP8cd^N3SnzGRR',
database : 'main'
}
connection: process.env.DB_CONNECTION
})
return db;