Skip to content

Commit

Permalink
[PRMP-1257] Address code review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
MohammadIqbalAD-NHS committed Dec 9, 2024
1 parent 28d1411 commit 12b9670
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions lambdas/handlers/manage_nrl_pointer_handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,9 @@ def lambda_handler(event, context):
logger.info(
f"Create pointer request: Body: {json.loads(document)}, \n"
f"RequestURL: {nrl_api_service.endpoint}, \n"
"HTTPVerb: POST, \n"
"HTTP Verb: POST, \n"
f"NHS Number: {nrl_message.nhs_number}, \n"
f"ODS code: {nrl_api_service.end_user_ods_code}, \n"
f"ODS Code: {nrl_api_service.end_user_ods_code}, \n"
f"Datetime: {int(datetime.now().timestamp())} "
)
nrl_api_service.create_new_pointer(json.loads(document))
Expand Down
6 changes: 3 additions & 3 deletions lambdas/services/nrl_api_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ def get_pointer(self, nhs_number, record_type=None, retry_on_expired: bool = Tru
logger.info(
f"Get pointer request: URL: {self.endpoint}, \n"
"HTTP Verb: GET, \n"
f"ODS code: {self.end_user_ods_code}, \n"
f"ODS Code: {self.end_user_ods_code}, \n"
f"Datetime: {int(datetime.now().timestamp())}, \n"
f"UserID: {self.end_user_ods_code} - {NRL_USER_ID}, \n"
)
Expand Down Expand Up @@ -111,8 +111,8 @@ def delete_pointer(self, nhs_number, record_type):
logger.info(
f"Delete pointer request: URL: {url_endpoint}, \n"
f"HTTP Verb: DELETE, \n"
f"ODS code: {self.end_user_ods_code}, \n"
f"NHS number: {nhs_number}, \n"
f"ODS Code: {self.end_user_ods_code}, \n"
f"NHS Number: {nhs_number}, \n"
f"Datetime: {int(datetime.now().timestamp())}, \n"
f"UserID: {self.end_user_ods_code} - {NRL_USER_ID} \n"
)
Expand Down

0 comments on commit 12b9670

Please sign in to comment.