diff --git a/src/oracle/user-maintenance/user-maintenance.service.ts b/src/oracle/user-maintenance/user-maintenance.service.ts index e76c728..cedafee 100644 --- a/src/oracle/user-maintenance/user-maintenance.service.ts +++ b/src/oracle/user-maintenance/user-maintenance.service.ts @@ -93,6 +93,8 @@ export class UserMaintenanceService { { outFormat: oracledb.OUT_FORMAT_OBJECT } ); + await connection.commit(); + const outBinds = result.outBinds; if (!outBinds?.P_CURSOR) { this.logger.error('One or more expected cursors are missing from stored procedure output.'); @@ -167,6 +169,8 @@ export class UserMaintenanceService { { outFormat: oracledb.OUT_FORMAT_OBJECT } ); + await connection.commit(); + const outBinds = result.outBinds; if (!outBinds?.P_CURSOR) { this.logger.error('One or more expected cursors are missing from stored procedure output.'); @@ -251,6 +255,8 @@ export class UserMaintenanceService { { outFormat: oracledb.OUT_FORMAT_OBJECT } ); + await connection.commit(); + const outBinds = result.outBinds; if (!outBinds?.P_CURSOR) { this.logger.error('One or more expected cursors are missing from stored procedure output.'); @@ -368,6 +374,8 @@ export class UserMaintenanceService { { outFormat: oracledb.OUT_FORMAT_OBJECT } ); + await connection.commit(); + const outBinds = result.outBinds; if (!outBinds?.P_CURSOR) { this.logger.error('One or more expected cursors are missing from stored procedure output.');