made updates to load envs and streamline pg pool to cut down on connections
Test Workflow / test-and-lint (pull_request) Failing after 45s
Test Workflow / test-and-lint (pull_request) Failing after 45s
This commit is contained in:
@@ -1,13 +1,9 @@
|
||||
import express from 'express'
|
||||
import { Pool } from 'pg'
|
||||
import { database } from '../../config/index.js'
|
||||
import { pool } from '../../config/index.js'
|
||||
import { check, validationResult } from 'express-validator'
|
||||
|
||||
const router = express.Router()
|
||||
|
||||
// Create a connection pool to the database
|
||||
const pool = new Pool(database)
|
||||
|
||||
// Get all collections
|
||||
router.get('/', async (req, res) => {
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user