Skip to content

Commit

Permalink
fix(#120): database get method returns any
Browse files Browse the repository at this point in the history
  • Loading branch information
barthofu committed Apr 28, 2023
1 parent 79c7788 commit 71039a8
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/configs/database.ts
Original file line number Diff line number Diff line change
Expand Up @@ -78,4 +78,7 @@ const envMikroORMConfig = {

if (!envMikroORMConfig['development'] || Object.keys(envMikroORMConfig['development']).length === 0) envMikroORMConfig['development'] = envMikroORMConfig['production']

export const mikroORMConfig = envMikroORMConfig as Required<Config>
export const mikroORMConfig = envMikroORMConfig as {
production: typeof envMikroORMConfig['production'],
development: typeof envMikroORMConfig['production']
}

0 comments on commit 71039a8

Please sign in to comment.