mirror of
https://github.com/IT4Change/gradido.git
synced 2025-12-13 07:45:54 +00:00
implement Hannes suggestion regarding export style
This commit is contained in:
parent
f623cbaee0
commit
03f1cc3206
@ -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 }
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user