chore: Extract knex model integration to separate file

This commit is contained in:
Faruk AYDIN
2021-10-06 23:39:02 +02:00
committed by Ali BARIN
parent d03e34e9cc
commit ae3d24e233
2 changed files with 4 additions and 7 deletions

View File

@@ -1,6 +1,6 @@
import { Model } from 'objection';
import knexInstance from 'knex';
import knexConfig from '../../knexfile';
const knex = knexInstance(knexConfig)
export default knex;
Model.knex(knex)