From 03f1cc320684711d23e17a09578ba4ddaefddacd Mon Sep 17 00:00:00 2001 From: Ulf Gebhardt Date: Mon, 3 Apr 2023 12:52:49 +0200 Subject: [PATCH] implement Hannes suggestion regarding export style --- database/src/prepare.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/database/src/prepare.ts b/database/src/prepare.ts index de47f7336..3c64b1c5e 100644 --- a/database/src/prepare.ts +++ b/database/src/prepare.ts @@ -2,7 +2,7 @@ import { createConnection } from 'mysql2/promise' import CONFIG from './config' -const createDatabase = async (): Promise => { +export const createDatabase = async (): Promise => { const con = await createConnection({ host: CONFIG.DB_HOST, port: CONFIG.DB_PORT, @@ -36,5 +36,3 @@ const createDatabase = async (): Promise => { await con.end() } - -export { createDatabase }