made updates to load envs and streamline pg pool to cut down on connections
Test Workflow / test-and-lint (pull_request) Failing after 45s

This commit is contained in:
2026-05-30 23:44:00 -07:00
parent 42563e6f7c
commit c16eab58a2
12 changed files with 19 additions and 43 deletions
+1 -5
View File
@@ -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 {