modified for res code a
This commit is contained in:
parent
b6e13398bd
commit
51f9bd6043
@ -594,7 +594,7 @@ export class ManageFeeService {
|
|||||||
throw new BadRequestException(fres[0].ERRORMESG)
|
throw new BadRequestException(fres[0].ERRORMESG)
|
||||||
}
|
}
|
||||||
|
|
||||||
return fres;
|
return { statusCode: 201, message: "Created Successfully" };
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
if (error instanceof BadRequestException) {
|
if (error instanceof BadRequestException) {
|
||||||
throw error;
|
throw error;
|
||||||
@ -688,7 +688,7 @@ export class ManageFeeService {
|
|||||||
throw new BadRequestException(fres[0].ERRORMESG)
|
throw new BadRequestException(fres[0].ERRORMESG)
|
||||||
}
|
}
|
||||||
|
|
||||||
return fres;
|
return { statusCode: 201, message: "Created Successfully" };
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
if (error instanceof BadRequestException) {
|
if (error instanceof BadRequestException) {
|
||||||
throw error;
|
throw error;
|
||||||
@ -777,7 +777,7 @@ export class ManageFeeService {
|
|||||||
throw new BadRequestException(fres[0].ERRORMESG)
|
throw new BadRequestException(fres[0].ERRORMESG)
|
||||||
}
|
}
|
||||||
|
|
||||||
return fres;
|
return { statusCode: 201, message: "Created Successfully" };
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
if (error instanceof BadRequestException) {
|
if (error instanceof BadRequestException) {
|
||||||
throw error;
|
throw error;
|
||||||
@ -871,7 +871,7 @@ export class ManageFeeService {
|
|||||||
throw new BadRequestException(fres[0].ERRORMESG)
|
throw new BadRequestException(fres[0].ERRORMESG)
|
||||||
}
|
}
|
||||||
|
|
||||||
return fres;
|
return { statusCode: 201, message: "Created Successfully" };
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
if (error instanceof BadRequestException) {
|
if (error instanceof BadRequestException) {
|
||||||
throw error;
|
throw error;
|
||||||
@ -955,7 +955,7 @@ export class ManageFeeService {
|
|||||||
throw new BadRequestException(fres[0].ERRORMESG)
|
throw new BadRequestException(fres[0].ERRORMESG)
|
||||||
}
|
}
|
||||||
|
|
||||||
return fres;
|
return { statusCode: 201, message: "Created Successfully" };
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
if (error instanceof BadRequestException) {
|
if (error instanceof BadRequestException) {
|
||||||
throw error;
|
throw error;
|
||||||
@ -1055,7 +1055,7 @@ export class ManageFeeService {
|
|||||||
throw new BadRequestException(fres[0].ERRORMESG)
|
throw new BadRequestException(fres[0].ERRORMESG)
|
||||||
}
|
}
|
||||||
|
|
||||||
return fres;
|
return { statusCode: 201, message: "Created Successfully" };
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
if (error instanceof BadRequestException) {
|
if (error instanceof BadRequestException) {
|
||||||
throw error;
|
throw error;
|
||||||
@ -1134,7 +1134,7 @@ export class ManageFeeService {
|
|||||||
throw new BadRequestException(fres[0].ERRORMESG)
|
throw new BadRequestException(fres[0].ERRORMESG)
|
||||||
}
|
}
|
||||||
|
|
||||||
return fres;
|
return { statusCode: 201, message: "Created Successfully" };
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
if (error instanceof BadRequestException) {
|
if (error instanceof BadRequestException) {
|
||||||
throw error;
|
throw error;
|
||||||
@ -1210,7 +1210,7 @@ export class ManageFeeService {
|
|||||||
throw new BadRequestException(fres[0].ERRORMESG)
|
throw new BadRequestException(fres[0].ERRORMESG)
|
||||||
}
|
}
|
||||||
|
|
||||||
return fres;
|
return { statusCode: 200, message: "Updated Successfully" };
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
if (error instanceof BadRequestException) {
|
if (error instanceof BadRequestException) {
|
||||||
throw error;
|
throw error;
|
||||||
@ -1284,7 +1284,7 @@ export class ManageFeeService {
|
|||||||
throw new BadRequestException(fres[0].ERRORMESG)
|
throw new BadRequestException(fres[0].ERRORMESG)
|
||||||
}
|
}
|
||||||
|
|
||||||
return fres;
|
return { statusCode: 200, message: "Updated Successfully" };
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
if (error instanceof BadRequestException) {
|
if (error instanceof BadRequestException) {
|
||||||
throw error;
|
throw error;
|
||||||
@ -1358,7 +1358,7 @@ export class ManageFeeService {
|
|||||||
throw new BadRequestException(fres[0].ERRORMESG)
|
throw new BadRequestException(fres[0].ERRORMESG)
|
||||||
}
|
}
|
||||||
|
|
||||||
return fres;
|
return { statusCode: 200, message: "Updated Successfully" };
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
if (error instanceof BadRequestException) {
|
if (error instanceof BadRequestException) {
|
||||||
throw error;
|
throw error;
|
||||||
@ -1432,7 +1432,7 @@ export class ManageFeeService {
|
|||||||
throw new BadRequestException(fres[0].ERRORMESG)
|
throw new BadRequestException(fres[0].ERRORMESG)
|
||||||
}
|
}
|
||||||
|
|
||||||
return fres;
|
return { statusCode: 200, message: "Updated Successfully" };
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
if (error instanceof BadRequestException) {
|
if (error instanceof BadRequestException) {
|
||||||
throw error;
|
throw error;
|
||||||
@ -1506,7 +1506,7 @@ export class ManageFeeService {
|
|||||||
throw new BadRequestException(fres[0].ERRORMESG)
|
throw new BadRequestException(fres[0].ERRORMESG)
|
||||||
}
|
}
|
||||||
|
|
||||||
return fres;
|
return { statusCode: 200, message: "Updated Successfully" };
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
if (error instanceof BadRequestException) {
|
if (error instanceof BadRequestException) {
|
||||||
throw error;
|
throw error;
|
||||||
@ -1580,7 +1580,7 @@ export class ManageFeeService {
|
|||||||
throw new BadRequestException(fres[0].ERRORMESG)
|
throw new BadRequestException(fres[0].ERRORMESG)
|
||||||
}
|
}
|
||||||
|
|
||||||
return fres;
|
return { statusCode: 200, message: "Updated Successfully" };
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
if (error instanceof BadRequestException) {
|
if (error instanceof BadRequestException) {
|
||||||
throw error;
|
throw error;
|
||||||
@ -1657,7 +1657,7 @@ export class ManageFeeService {
|
|||||||
throw new BadRequestException(fres[0].ERRORMESG)
|
throw new BadRequestException(fres[0].ERRORMESG)
|
||||||
}
|
}
|
||||||
|
|
||||||
return fres;
|
return { statusCode: 200, message: "Updated Successfully" };
|
||||||
} else {
|
} else {
|
||||||
throw new BadRequestException();
|
throw new BadRequestException();
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user