From 1b7d5b8554f54b4694a23c75b0cda644b17c676a Mon Sep 17 00:00:00 2001 From: Kallesh B S Date: Thu, 3 Apr 2025 16:26:38 +0530 Subject: [PATCH] updated controller of manage-clients --- src/db/db.service.ts | 1 - src/oracle/manage-clients/manage-clients.controller.ts | 4 ++-- src/oracle/param-table/param-table.service.ts | 4 ++-- 3 files changed, 4 insertions(+), 5 deletions(-) diff --git a/src/db/db.service.ts b/src/db/db.service.ts index 0010f5f..ec48e1f 100644 --- a/src/db/db.service.ts +++ b/src/db/db.service.ts @@ -22,7 +22,6 @@ export class OracleDBService { async getConnection(): Promise { const connection = await this.pool.getConnection(); - console.log('Database connection initialized successfully for oracle.'); return connection; } } diff --git a/src/oracle/manage-clients/manage-clients.controller.ts b/src/oracle/manage-clients/manage-clients.controller.ts index 4319f89..0e72d8d 100644 --- a/src/oracle/manage-clients/manage-clients.controller.ts +++ b/src/oracle/manage-clients/manage-clients.controller.ts @@ -71,7 +71,7 @@ export class ManageClientsController { GetPreparerContactsByClientid( @Query() body: GetPreparerByClientidContactsByClientidLocByClientidDTO, ) { - return body; + return this.manageClientsService.GetPreparerContactsByClientid(body); } @ApiTags('Manage Clients - Oracle') @@ -79,6 +79,6 @@ export class ManageClientsController { GetPreparerLocByClientid( @Query() body: GetPreparerByClientidContactsByClientidLocByClientidDTO, ) { - return body; + return this.manageClientsService.GetPreparerLocByClientid(body); } } diff --git a/src/oracle/param-table/param-table.service.ts b/src/oracle/param-table/param-table.service.ts index 71cd9b2..7034647 100644 --- a/src/oracle/param-table/param-table.service.ts +++ b/src/oracle/param-table/param-table.service.ts @@ -29,8 +29,8 @@ export class ParamTableService { const result = await connection.execute( `BEGIN - MANAGEPARAMTABLE_PKG.GETPARAMVALUES(:P_SPID,:P_PARAMTYPE,:p_cursor); - END;`, + MANAGEPARAMTABLE_PKG.GETPARAMVALUES(:P_SPID,:P_PARAMTYPE,:p_cursor); + END;`, { P_SPID: { val: finalBody.P_SPID,