Closed thechori closed 2 months ago
Hello @thechori! We have looked into this issue and tried to update the comments with these parameters. Can you please check once here and see if it helps better now?
Hey @tiwarishubham635 , I'm no longer working on the project that used this library. sorry about that. But thank you so much for looking into this! I think this could help a lot of other people. Cheers!
Alright then, would you like to close this issue?
sure!
Describe the bug
My code works perfectly when I run:
but when I try to add the
startTime
andendTime
, I receive an empty array (see below in "To Reproduce")Note: I think it might have to do with the difference between
Date
and astring
type when being passed in? I've tried to convert my date string (e.g., "2023-11-01") to a Date object, and neither works.In this intellisense screenshot, the suggestion is to pass a date as
YYYY-MM-DD
but the TypeScript type is marked asDate | undefined
To Reproduce
Expected behavior
I'd expect to pass in the date's
string
(e.g., "2023-11-01") into the following function and have the filtered call data return properlyCode snippets
OS
macOS
Node version
Node v20.5.0
Library version
"twilio": "^4.12.0"
Additional context
Absolutely love the work that you all have done. This is my first hiccup with the API and I'd be more than glad to help more to get this resolved because this would make my application even better.
Thank you so much!! 🔥 🙌
Update (as of finishing this bug report...):
I've found the issue... I was using the wrong parameters the entire time... I did not realize that there were
startTimeAfter
andendTimeBefore
. I'd love to say that doing away with both of those in favor of consolidating into simplystartTime
andendTime
would be the best way to improve DX, but I also don't have the context and experience of a Twilio engineer, so I don't know if that is sound advice or not. All I know is that I was incredibly confused and frustrated and I only stumbled upon these two extra parameters by throwing a hail mary pass at the intellisense to see what other things I could pass into the.list()
function call.I sincerely hope that you appreciate the time that I spent to provide this feedback. Once again, you guys are awesome. Thank you so much for the hard and quality work. Sorry if this comes as a waste of time to y'all, but I hope that it does not!
Cheers :)