From b0a9487b075b9002710668ea8b1234c9e3adf49f Mon Sep 17 00:00:00 2001 From: Kallesh B S Date: Fri, 28 Feb 2025 15:15:46 +0530 Subject: [PATCH] updates --- api.http | 13 +++++++------ src/oracle/oracle.controller.ts | 2 +- src/oracle/oracle.service.ts | 2 ++ 3 files changed, 10 insertions(+), 7 deletions(-) diff --git a/api.http b/api.http index afa0769..62dcf38 100644 --- a/api.http +++ b/api.http @@ -135,11 +135,6 @@ Content-Type: application/json ### -//GetSPcontacts - -GET http://localhost:3000/oracle/GetSPcontacts/12 - -### //InactivateSPContact @@ -164,7 +159,13 @@ GET http://localhost:3000/oracle/GetAllSPcontacts POST http://localhost:3000/oracle/CreateCarnetSequence Content-Type: application/json -{} +{ + "p_spid": 2, + "p_regionid": 65, + "p_startnumber": 2000, + "p_endnumber": 3000, + "p_carnettype": "type1" +} ### diff --git a/src/oracle/oracle.controller.ts b/src/oracle/oracle.controller.ts index 1d47016..ffe50a5 100644 --- a/src/oracle/oracle.controller.ts +++ b/src/oracle/oracle.controller.ts @@ -140,7 +140,7 @@ export class OracleController { body.p_startnumber, body.p_endnumber, body.p_carnettype - ) + ) } @Get('/GetCarnetSequence/:id') diff --git a/src/oracle/oracle.service.ts b/src/oracle/oracle.service.ts index f985042..c8f1a8a 100644 --- a/src/oracle/oracle.service.ts +++ b/src/oracle/oracle.service.ts @@ -902,6 +902,8 @@ export class OracleService { ); let fres = await result.outBinds.p_cursor.getRows(); + await result.outBinds.p_cursor.close() + return fres } catch (err) {