WIP server side.

This commit is contained in:
Ahmed Bouhuolia
2020-01-22 02:09:45 +02:00
parent de905d7e7c
commit 488709088b
123 changed files with 14885 additions and 771 deletions

View File

@@ -1,7 +1,11 @@
import Knex from 'knex';
import { knexSnakeCaseMappers } from 'objection';
import knexfile from '@/../knexfile';
const config = knexfile[process.env.NODE_ENV];
const knex = Knex(config);
const knex = Knex({
...config,
...knexSnakeCaseMappers({ upperCase: true }),
});
export default knex;