diff --git a/kenya_compliance/kenya_compliance/apis/remote_response_status_handlers.py b/kenya_compliance/kenya_compliance/apis/remote_response_status_handlers.py index 1a6192b..69c5f8d 100644 --- a/kenya_compliance/kenya_compliance/apis/remote_response_status_handlers.py +++ b/kenya_compliance/kenya_compliance/apis/remote_response_status_handlers.py @@ -380,7 +380,7 @@ def search_branch_request_on_success(response: dict) -> None: try: doc = frappe.get_doc( "Branch", - {"custom_branch_code": branch["bhfId"]}, + {"branch": branch["bhfId"]}, for_update=True, )