Skip to content

Commit c9c59eb

Browse files
log dates
1 parent 6a7dc75 commit c9c59eb

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

lambdas/supplier-allocator/src/services/supplier-config.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,12 @@ export async function getVolumeGroupDetails(
2222
const groupDetails: VolumeGroup =
2323
await deps.supplierConfigRepo.getVolumeGroup(groupId);
2424

25+
deps.logger.info({
26+
description: "Comparing dates for volume group",
27+
startdate: new Date(groupDetails.startDate),
28+
endDate: groupDetails.endDate ? new Date(groupDetails.endDate) : null,
29+
currentDate: new Date(),
30+
});
2531
if (
2632
groupDetails.status === "PROD" &&
2733
new Date(groupDetails.startDate) <= new Date() &&

0 commit comments

Comments
 (0)