Comparing version 8.0.3 to 8.0.4
@@ -29,4 +29,9 @@ "use strict"; | ||
const connection = await pool.connect(); | ||
await handler((0, _bindIsolatedPoolConnection.default)(parentLog, pool, connection, clientConfiguration)); | ||
connection.release(); | ||
try { | ||
await handler((0, _bindIsolatedPoolConnection.default)(parentLog, pool, connection, clientConfiguration)); | ||
} catch (error) { | ||
connection.release(); | ||
throw error; | ||
} | ||
} else { | ||
@@ -33,0 +38,0 @@ const connection = await pool.connect(); |
@@ -93,3 +93,3 @@ { | ||
}, | ||
"version": "8.0.3" | ||
"version": "8.0.4" | ||
} |
@@ -43,5 +43,9 @@ // @flow | ||
await handler(bindIsolatedPoolConnection(parentLog, pool, connection, clientConfiguration)); | ||
try { | ||
await handler(bindIsolatedPoolConnection(parentLog, pool, connection, clientConfiguration)); | ||
} catch (error) { | ||
connection.release(); | ||
connection.release(); | ||
throw error; | ||
} | ||
} else { | ||
@@ -48,0 +52,0 @@ const connection: InternalDatabaseConnectionType = await pool.connect(); |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
240160
2617