-
Notifications
You must be signed in to change notification settings - Fork 281
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: blobs transcript date filter #3877
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I logged the There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Is This change still works with local storage emulation, too? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It is, yes. I'll test with the emulator as well. It should as the Typescript type definitions should be correct. Will double check though. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @mdrichardson Emulator checks out! |
||
) | ||
: 0; | ||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Simple fix here, auto-import included the wrong path before.