We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ed2339a commit 81fba4cCopy full SHA for 81fba4c
src/Client/BotSDKBaseClient.ts
@@ -481,9 +481,9 @@ export class BotSDKBaseClient
481
): Promise<ActionResult<PaginationChunk<TEvent>>> {
482
const options = {
483
...ergonomicOptions,
484
- filter: ergonomicOptions.filter
485
- ? JSON.stringify(ergonomicOptions.filter)
486
- : undefined,
+ ...(ergonomicOptions.filter
+ ? { filter: JSON.stringify(ergonomicOptions.filter) }
+ : {}),
487
dir: ergonomicOptions.direction === 'forwards' ? 'f' : 'b',
488
};
489
return this.client
0 commit comments