Skip to content

Commit 9334483

Browse files
committed
[NRL-1290] Fix typo in use of DB model for bars checks
1 parent 0de6492 commit 9334483

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

api/producer/createDocumentReference/create_document_reference.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ def _check_permissions(
7070
# Allow BARS proxy to create an appointment document reference for any organisation
7171
if (
7272
metadata.ods_code in ["V4TOL", "V4T0L"]
73-
and core_model.type.coding[0].code == PointerTypes.APPOINTMENT.coding_value()
73+
and core_model.type == PointerTypes.APPOINTMENT.value
7474
):
7575
return
7676

api/producer/updateDocumentReference/update_document_reference.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ def handler(
6464

6565
if (
6666
metadata.ods_code in ["V4TOL", "V4T0L"]
67-
and core_model.type.coding[0].code == PointerTypes.APPOINTMENT.coding_value()
67+
and core_model.type == PointerTypes.APPOINTMENT.value
6868
):
6969
# If bars app - don't validate the ods code against the pointer
7070
logger.log(

0 commit comments

Comments
 (0)