From abac818fed46d6ebd50b64b6244fe1352c4d6a84 Mon Sep 17 00:00:00 2001 From: Bob den Os <108393871+BobdenOs@users.noreply.github.com> Date: Mon, 2 Sep 2024 15:59:11 +0200 Subject: [PATCH] fix: Allow applications to configure `acquireTimeoutMillis` (#796) --- hana/lib/HANAService.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hana/lib/HANAService.js b/hana/lib/HANAService.js index 81efd87cd..d7c16dd07 100644 --- a/hana/lib/HANAService.js +++ b/hana/lib/HANAService.js @@ -43,7 +43,7 @@ class HANAService extends SQLService { throw new Error(`Database kind "${kind}" configured, but no HDI container or Service Manager instance bound to application.`) } const isMultitenant = !!service.options.credentials.sm_url || ('multiTenant' in this.options ? this.options.multiTenant : cds.env.requires.multitenancy) - const acquireTimeoutMillis = this.options.pool?.acquireTimeoutMillis || cds.env.profiles.includes('production') ? 1000 : 10000 + const acquireTimeoutMillis = this.options.pool?.acquireTimeoutMillis || (cds.env.profiles.includes('production') ? 1000 : 10000) return { options: { min: 0,