chore: Use imports as ES modules

This commit is contained in:
Faruk AYDIN
2024-01-04 22:24:42 +01:00
parent 523f8a8951
commit b95478b635
52 changed files with 198 additions and 186 deletions

View File

@@ -4,8 +4,8 @@ import process from 'process';
import pg from 'pg';
pg.types.setTypeParser(20, 'text', parseInt);
import knex from 'knex';
import knexConfig from '../../knexfile';
import logger from '../helpers/logger';
import knexConfig from '../../knexfile.js';
import logger from '../helpers/logger.js';
export const client = knex(knexConfig);