From 238a90d5fb56c5ca0dc3b41db7c7d05b8c05e060 Mon Sep 17 00:00:00 2001 From: Josh Gummersall Date: Wed, 21 Jul 2021 12:46:12 -0700 Subject: [PATCH] fix: blobs transcript date filter Fixes #3864 --- libraries/botbuilder-azure-blobs/src/blobsTranscriptStore.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/libraries/botbuilder-azure-blobs/src/blobsTranscriptStore.ts b/libraries/botbuilder-azure-blobs/src/blobsTranscriptStore.ts index 7f9b0e1a02..d9fd31065f 100644 --- a/libraries/botbuilder-azure-blobs/src/blobsTranscriptStore.ts +++ b/libraries/botbuilder-azure-blobs/src/blobsTranscriptStore.ts @@ -5,7 +5,7 @@ import * as z from 'zod'; import getStream from 'get-stream'; import pmap from 'p-map'; import { Activity, PagedResult, TranscriptInfo, TranscriptStore } from 'botbuilder-core'; -import { maybeCast } from 'botbuilder-stdlib/lib/maybeCast'; +import { maybeCast } from 'botbuilder-stdlib'; import { sanitizeBlobKey } from './sanitizeBlobKey'; import { @@ -141,8 +141,7 @@ export class BlobsTranscriptStore implements TranscriptStore { const fromIdx = startDate != null ? blobItems.findIndex( - (blobItem) => - blobItem?.metadata?.timestamp && new Date(blobItem.metadata.timestamp) >= startDate + (blobItem) => blobItem?.properties?.createdOn && blobItem?.properties?.createdOn >= startDate ) : 0;