@gov-cy/govcy-express-services 0.1.2 → 0.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -556,7 +556,7 @@ The API is expected to return a JSON response with the following structure (see
556
556
  "ErrorCode": 0,
557
557
  "ErrorMessage": null,
558
558
  "Data": {
559
- "submission_id": "12345678-x"
559
+ "referenceValue": "12345678"
560
560
  }
561
561
  }
562
562
  ```
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gov-cy/govcy-express-services",
3
- "version": "0.1.2",
3
+ "version": "0.1.3",
4
4
  "description": "An Express-based system that dynamically renders services using @gov-cy/govcy-frontend-renderer and posts data to a submission API.",
5
5
  "author": "DMRID - DSF Team",
6
6
  "license": "MIT",
@@ -90,7 +90,7 @@ export function govcyReviewPostHandler() {
90
90
 
91
91
  // Check if the response is successful
92
92
  if (response.Succeeded) {
93
- let referenceNo = response?.Data?.submission_id || "";
93
+ let referenceNo = response?.Data?.referenceValue || "";
94
94
  // Add the reference number to the submission data
95
95
  submissionData.referenceNumber = referenceNo;
96
96
  logger.info("✅ Data submitted", siteId, referenceNo);