chore: Extract knex model integration to separate file
This commit is contained in:
@@ -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)
|
||||
|
Reference in New Issue
Block a user