Skip to content

Commit

Permalink
fix: blobs transcript date filter (#3877)
Browse files Browse the repository at this point in the history
Fixes #3864
  • Loading branch information
Josh Gummersall authored Jul 21, 2021
1 parent 02eaa8f commit 64926f4
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions libraries/botbuilder-azure-blobs/src/blobsTranscriptStore.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -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;

Expand Down

0 comments on commit 64926f4

Please sign in to comment.