refactored the app export. Update readme.

This commit is contained in:
Jordan
2024-01-14 07:04:58 -08:00
parent c3435a5e81
commit ea4f5b6ede
6 changed files with 67 additions and 37 deletions

View File

@ -7,7 +7,7 @@ if (!process.env.DB_URL) {
};
// Creating an instance of Knex
export const db = knex({
export default knex({
client: 'postgres',
connection: process.env.DB_URL
});