Try falling back to test

This commit is contained in:
Jordan Eldredge 2022-03-09 23:40:48 -08:00
parent 3cad5d280e
commit d5a3b8646f

View file

@ -2,6 +2,4 @@ import Knex from "knex";
import * as knexConfigs from "./knexfile";
import { NODE_ENV } from "./config";
throw new Error(`NODE_ENV: ${NODE_ENV}`);
export const knex = Knex(knexConfigs[NODE_ENV]);
export const knex = Knex(knexConfigs[NODE_ENV ?? "test"]);