Skip to content

Commit

Permalink
feat: Add DB connect time out ms
Browse files Browse the repository at this point in the history
  • Loading branch information
wsdt committed Feb 12, 2024
1 parent 0db6952 commit aea10ef
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/data-source.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ export const AppDataSource = new DataSource({
// prod = false (self-signed certificates need to be allowed in prod for aws deployment), dev = true
rejectUnauthorized: false
},
connectTimeoutMS: 10000,
})

export const historyDataRepository = AppDataSource.getRepository(HistoryData)
Expand Down

0 comments on commit aea10ef

Please sign in to comment.