From 563f3d17306ddb52881c8d2cb98a637bc46e27fc Mon Sep 17 00:00:00 2001 From: 13bfrancis <40218571+13bfrancis@users.noreply.github.com> Date: Fri, 22 Nov 2024 12:16:34 -0500 Subject: [PATCH] fix never type error --- .../shared-types/opensearch/main/transforms/respond-to-rai.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/packages/shared-types/opensearch/main/transforms/respond-to-rai.ts b/lib/packages/shared-types/opensearch/main/transforms/respond-to-rai.ts index 26e5d2763f..85eee1c924 100644 --- a/lib/packages/shared-types/opensearch/main/transforms/respond-to-rai.ts +++ b/lib/packages/shared-types/opensearch/main/transforms/respond-to-rai.ts @@ -8,7 +8,7 @@ export const transform = () => { makoChangedDate: data.timestamp ? new Date(data.timestamp).toISOString() : null, cmsStatus, stateStatus, - raiReceivedDate: new Date(data.timestamp).toISOString(), + raiReceivedDate: data.timestamp ? new Date(data.timestamp).toISOString() : null, seatoolStatus: SEATOOL_STATUS.PENDING_RAI, locked: true, };