File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed
lambdas/supplier-allocator/src/services Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -10,6 +10,7 @@ import { LetterRequestPreparedEventV2 } from "@nhsdigital/nhs-notify-event-schem
1010import { LetterRequestPreparedEvent } from "@nhsdigital/nhs-notify-event-schemas-letter-rendering-v1" ;
1111
1212import { Deps } from "../config/deps" ;
13+ import { de } from "zod/v4/locales" ;
1314
1415type PreparedEvents = LetterRequestPreparedEventV2 | LetterRequestPreparedEvent ;
1516
@@ -248,6 +249,14 @@ export async function filterPacksForLetter(
248249 ) {
249250 filteredPackIds . push ( packSpecId ) ;
250251 } else {
252+ deps . logger . info ( {
253+ description : "Evaluating pack specification constraints for letter" ,
254+ letterVariantId : letterEvent . data . letterVariantId ,
255+ packSpecId,
256+ pageCount : letterEvent . data . pageCount ,
257+ constraintValue : packSpec . constraints . sheets . value ,
258+ constraintOperator : packSpec . constraints . sheets . operator ,
259+ } ) ;
251260 const isValid = evaluateContraint (
252261 letterEvent . data . pageCount ,
253262 packSpec . constraints . sheets . value ,
You can’t perform that action at this time.
0 commit comments