Skip to content

Commit

Permalink
MHR API DRS integration include registration ts. (#2085)
Browse files Browse the repository at this point in the history
Signed-off-by: Doug Lovett <[email protected]>
  • Loading branch information
doug-lovett authored Dec 17, 2024
1 parent ca17800 commit b0c4054
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion mhr-api/src/mhr_api/resources/registration_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -511,11 +511,12 @@ def enqueue_doc_record(registration: MhrRegistration, json_data: dict):
doc_type = TO_DRS_DOC_TYPE.get(doc_type)
payload = {
"accountId": registration.account_id,
"author": json_data.get("username"),
"author": json_data.get("username", ""),
"documentClass": "MHR",
"documentType": doc_type,
"consumerDocumentId": registration.documents[0].document_id,
"consumerIdentifier": registration.mhr_number,
"consumerFilingDate": json_data.get("createDateTime", ""),
}
logger.info(f"Staff reg id={registration.id} queuing DRS record payload={payload}")
GoogleQueueService().publish_create_doc_record(payload)
Expand Down

0 comments on commit b0c4054

Please sign in to comment.