Skip to content

Conversation

@OsamaSBCrea
Copy link
Contributor

Add filtering/sorting options to listTransactions

};
}

async listTransactions(options?: TransactionListOptions) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@antikus any concerns?

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good! great job!

opts.$sortby = `${sortBy.order === 'desc' ? '-' : ''}${sortBy.field}`;
}

const result = await this.get<ListResponse>(ENDPOINT, opts);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please add next to the ListResponse type. And return that out of the function.

@denisgursky denisgursky merged commit 03af4d1 into main Oct 30, 2023
@denisgursky denisgursky deleted the of-list-txns-filtering branch October 30, 2023 18:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants