Skip to content

Commit be63d18

Browse files
committed
chore: better naming
1 parent b319a6e commit be63d18

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/database/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { DataSource } from 'typeorm';
22

3-
const AppDataSource = process.env.JEST_WORKER_ID ? getTestDataSource() : getDataSource();
3+
const AppDataSource = process.env.JEST_WORKER_ID ? getTestDataSource() : getAppDataSource();
44

55
async function initialiseDataSource(): Promise<void> {
66
try {
@@ -10,7 +10,7 @@ async function initialiseDataSource(): Promise<void> {
1010
}
1111
}
1212

13-
function getDataSource(): DataSource {
13+
function getAppDataSource(): DataSource {
1414
const { DB_HOST, DB_PORT, DB_USERNAME, DB_PASSWORD, DB_DATABASE } = process.env;
1515
return new DataSource({
1616
type: 'mysql',

0 commit comments

Comments
 (0)