Skip to content

Commit

Permalink
update schema and table ordering (#76)
Browse files Browse the repository at this point in the history
* update schema and table ordering

* pr review fix
  • Loading branch information
GodsonLeigh authored Dec 18, 2024
1 parent fedc8f2 commit c973c75
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
4 changes: 4 additions & 0 deletions app/inbound/delinked/schema.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,10 @@ module.exports = Joi.object({
'date.base': 'datePublished should be a type of date',
'date.strict': 'datePublished should be a type of date or null'
}),
updated: Joi.date().allow(null).messages({
'date.base': 'updated should be a type of date',
'date.strict': 'updated should be a type of date or null'
}),
type: Joi.string().required().valid(DELINKED).messages({
'string.base': 'type should be a type of string',
'any.required': 'The field type is not present but it is required',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,8 @@ const getDelinkedStatementByPaymentReference = async (paymentReference, _exclude
email: organisation.emailAddress,
frn: organisation.frn,
sbi: organisation.sbi,
...d365,
...delinkedCalculation,
...d365,
scheme,
previousPaymentCount,
documentReference: savedDocument.documentId
Expand Down
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ffc-doc-statement-constructor",
"version": "1.12.41",
"version": "1.12.42",
"description": "Data construction for statement generation",
"homepage": "https://github.com/DEFRA/ffc-doc-statement-constructor",
"main": "app/index.js",
Expand All @@ -19,7 +19,7 @@
"Marc Templeton [email protected]",
"Simon Dunn [email protected]",
"Abidemi Adio [email protected]",
"Leigh Godson leigh.godson.external@eviden.com",
"Leigh Godson [email protected]",
"Amirs Ismuhametovs [email protected]",
"Sam Plackett [email protected]"
],
Expand Down Expand Up @@ -60,4 +60,4 @@
"**/test-output/**"
]
}
}
}

0 comments on commit c973c75

Please sign in to comment.