made updates to load envs and streamline pg pool to cut down on connections (#15)
Reviewed-on: #15 Co-authored-by: Joseph Nelson <joseph.nelson4456@gmail.com> Co-committed-by: Joseph Nelson <joseph.nelson4456@gmail.com>
This commit was merged in pull request #15.
This commit is contained in:
@@ -1,12 +1,8 @@
|
||||
import express from 'express'
|
||||
import { database } from '../../config/index.js'
|
||||
import { Pool } from 'pg'
|
||||
import { pool } from '../../config/index.js'
|
||||
|
||||
const router = express.Router()
|
||||
|
||||
// Create a connection pool to the database
|
||||
const pool = new Pool(database)
|
||||
|
||||
/**
|
||||
* Get all users.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user