Skip to content
Snippets Groups Projects
Commit ef7ef684 authored by Abbas Jafari's avatar Abbas Jafari :speech_balloon:
Browse files

Update database.ts

parent 5a3b9557
No related branches found
No related tags found
No related merge requests found
......@@ -4,10 +4,10 @@ dotenv.config({ path: ('../.env') });
export async function connect(): Promise<Pool>{
const connection = createPool({
host: process.env.DB_HOST,
user: process.env.DB_USER,
password: process.env.DB_PASS,
database: process.env.DB_NAME,
host: "mysql.ansatt.ntnu.no",
user: 'abbasj_abbas',
password: 'abbas2021',
database: 'abbasj_project3',
connectionLimit: 10
})
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment