Skip to content

Commit c3e180c

Browse files
committed
NRL-791 fix logs
1 parent c7b7286 commit c3e180c

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
@@ -66,7 +66,7 @@ def _check_permissions(
6666
"""
6767
if metadata.ods_code != core_model.custodian:
6868
logger.log(
69-
LogReference.PROUPSERT004,
69+
LogReference.PROCREATE004,
7070
ods_code=metadata.ods_code,
7171
custodian=core_model.custodian,
7272
)

layer/nrlf/core/log_references.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -289,7 +289,7 @@ class LogReference(Enum):
289289
)
290290
PROUPSERT004 = _Reference(
291291
"WARN",
292-
"ODS code in headers does not match ODWS code in resource custodian for upsert",
292+
"ODS code in headers does not match ODS code in resource custodian for upsert",
293293
)
294294
PROUPSERT005 = _Reference(
295295
"WARN", "Organisation is not allowed to upsert pointer type for upsert"

0 commit comments

Comments
 (0)