refactor: Use named exports for factories

This commit is contained in:
Faruk AYDIN
2023-10-23 10:36:44 +02:00
parent 655deb12c8
commit 6be8a581d2
12 changed files with 23 additions and 33 deletions

View File

@@ -2,7 +2,7 @@ import Connection from '../../src/models/connection';
import appConfig from '../../src/config/app';
import { AES } from 'crypto-js';
const createConnection = async (params: Partial<Connection> = {}) => {
export const createConnection = async (params: Partial<Connection> = {}) => {
params.key = params?.key || 'deepl';
const formattedData = params.formattedData || {
@@ -22,5 +22,3 @@ const createConnection = async (params: Partial<Connection> = {}) => {
return connection;
};
export default createConnection;