Closed TheTharz closed 5 months ago
Issue Title: Fixed branchId always returning zero in endpoint /lifepill/v1/employers/get-by-id
Description: The issue where the branchId field for an employer was consistently returning zero when accessing the endpoint /lifepill/v1/employers/get-by-id has been resolved. The branchId field now correctly returns the assigned branch ID for the employer, ensuring accurate data retrieval.
Steps Taken to Resolve:
Expected Behavior Now: The branchId field now returns the correct assigned branch ID for the employer when making a request to the /lifepill/v1/employers/get-by-id endpoint.
Additional Information: This fix should improve the accuracy of employer data retrieval. Please verify on your end and close the issue if resolved.
Best regards,
Pramitha Jayasooriya,
Backend Developer at LifePill,
https://pramithamj.me
Issue Title:
branchId
always returns zero in endpoint/lifepill/v1/employers/get-by-id
Description:
Currently, when accessing the endpoint
/lifepill/v1/employers/get-by-id
, thebranchId
field for an employer is consistently returning zero, even though it should be the assigned branch ID. This issue is causing inaccuracies in the data retrieval process.Steps to Reproduce:
/lifepill/v1/employers/get-by-id
endpoint with an employer ID.branchId
field.Expected Behavior:
The
branchId
field should return the correct assigned branch ID for the employer.Actual Behavior:
The
branchId
field is always returning zero.Additional Information:
branchId
is correctly assigned to the employer during creation and updates.branchId
is correctly stored in the database for the affected employers.