We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 73148c9 commit 81fc9a9Copy full SHA for 81fc9a9
src/data-source/DataSource.ts
@@ -234,9 +234,6 @@ export class DataSource {
234
// connect to the cache-specific database if cache is enabled
235
if (this.queryResultCache) await this.queryResultCache.connect()
236
237
- // set connected status for the current connection
238
- ObjectUtils.assign(this, { isInitialized: true })
239
-
240
try {
241
// build all metadatas registered in the current connection
242
await this.buildMetadatas()
@@ -261,6 +258,9 @@ export class DataSource {
261
258
throw error
262
259
}
263
260
+ // set connected status for the current connection
+ ObjectUtils.assign(this, { isInitialized: true })
+
264
return this
265
266
0 commit comments