implement Hannes suggestion regarding export style

This commit is contained in:
Ulf Gebhardt 2023-04-03 12:52:49 +02:00
parent f623cbaee0
commit 03f1cc3206
Signed by: ulfgebhardt
GPG Key ID: DA6B843E748679C9

View File

@ -2,7 +2,7 @@ import { createConnection } from 'mysql2/promise'
import CONFIG from './config' import CONFIG from './config'
const createDatabase = async (): Promise<void> => { export const createDatabase = async (): Promise<void> => {
const con = await createConnection({ const con = await createConnection({
host: CONFIG.DB_HOST, host: CONFIG.DB_HOST,
port: CONFIG.DB_PORT, port: CONFIG.DB_PORT,
@ -36,5 +36,3 @@ const createDatabase = async (): Promise<void> => {
await con.end() await con.end()
} }
export { createDatabase }