sleep-tracker-backend/data/dbConfig.js
ruihildt 77a4c28757 Fix dailyAverages query on session update & test
- Add dailyAverages seeds
- Start implementing testing
2019-08-02 01:18:56 +02:00

9 lines
194 B
JavaScript

require("dotenv").config();
const knex = require('knex');
const config = require('../knexfile');
const environment = process.env.DB_ENV || 'test';
module.exports = knex(config[environment]);