From 51f9bd6043842d15f283465e5a2844a8f94abb3c Mon Sep 17 00:00:00 2001 From: Kallesh B S Date: Tue, 6 May 2025 13:22:09 +0530 Subject: [PATCH] modified for res code a --- src/oracle/manage-fee/manage-fee.service.ts | 28 ++++++++++----------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/src/oracle/manage-fee/manage-fee.service.ts b/src/oracle/manage-fee/manage-fee.service.ts index 06c139f..0ab671a 100644 --- a/src/oracle/manage-fee/manage-fee.service.ts +++ b/src/oracle/manage-fee/manage-fee.service.ts @@ -594,7 +594,7 @@ export class ManageFeeService { throw new BadRequestException(fres[0].ERRORMESG) } - return fres; + return { statusCode: 201, message: "Created Successfully" }; } catch (error) { if (error instanceof BadRequestException) { throw error; @@ -688,7 +688,7 @@ export class ManageFeeService { throw new BadRequestException(fres[0].ERRORMESG) } - return fres; + return { statusCode: 201, message: "Created Successfully" }; } catch (error) { if (error instanceof BadRequestException) { throw error; @@ -777,7 +777,7 @@ export class ManageFeeService { throw new BadRequestException(fres[0].ERRORMESG) } - return fres; + return { statusCode: 201, message: "Created Successfully" }; } catch (error) { if (error instanceof BadRequestException) { throw error; @@ -871,7 +871,7 @@ export class ManageFeeService { throw new BadRequestException(fres[0].ERRORMESG) } - return fres; + return { statusCode: 201, message: "Created Successfully" }; } catch (error) { if (error instanceof BadRequestException) { throw error; @@ -955,7 +955,7 @@ export class ManageFeeService { throw new BadRequestException(fres[0].ERRORMESG) } - return fres; + return { statusCode: 201, message: "Created Successfully" }; } catch (error) { if (error instanceof BadRequestException) { throw error; @@ -1055,7 +1055,7 @@ export class ManageFeeService { throw new BadRequestException(fres[0].ERRORMESG) } - return fres; + return { statusCode: 201, message: "Created Successfully" }; } catch (error) { if (error instanceof BadRequestException) { throw error; @@ -1134,7 +1134,7 @@ export class ManageFeeService { throw new BadRequestException(fres[0].ERRORMESG) } - return fres; + return { statusCode: 201, message: "Created Successfully" }; } catch (error) { if (error instanceof BadRequestException) { throw error; @@ -1210,7 +1210,7 @@ export class ManageFeeService { throw new BadRequestException(fres[0].ERRORMESG) } - return fres; + return { statusCode: 200, message: "Updated Successfully" }; } catch (error) { if (error instanceof BadRequestException) { throw error; @@ -1284,7 +1284,7 @@ export class ManageFeeService { throw new BadRequestException(fres[0].ERRORMESG) } - return fres; + return { statusCode: 200, message: "Updated Successfully" }; } catch (error) { if (error instanceof BadRequestException) { throw error; @@ -1358,7 +1358,7 @@ export class ManageFeeService { throw new BadRequestException(fres[0].ERRORMESG) } - return fres; + return { statusCode: 200, message: "Updated Successfully" }; } catch (error) { if (error instanceof BadRequestException) { throw error; @@ -1432,7 +1432,7 @@ export class ManageFeeService { throw new BadRequestException(fres[0].ERRORMESG) } - return fres; + return { statusCode: 200, message: "Updated Successfully" }; } catch (error) { if (error instanceof BadRequestException) { throw error; @@ -1506,7 +1506,7 @@ export class ManageFeeService { throw new BadRequestException(fres[0].ERRORMESG) } - return fres; + return { statusCode: 200, message: "Updated Successfully" }; } catch (error) { if (error instanceof BadRequestException) { throw error; @@ -1580,7 +1580,7 @@ export class ManageFeeService { throw new BadRequestException(fres[0].ERRORMESG) } - return fres; + return { statusCode: 200, message: "Updated Successfully" }; } catch (error) { if (error instanceof BadRequestException) { throw error; @@ -1657,7 +1657,7 @@ export class ManageFeeService { throw new BadRequestException(fres[0].ERRORMESG) } - return fres; + return { statusCode: 200, message: "Updated Successfully" }; } else { throw new BadRequestException(); }