Skip to content
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

feat: Added pagination in Transaction #892

Open
wants to merge 1 commit into
base: next
Choose a base branch
from

Conversation

thisismayuresh
Copy link
Collaborator

No description provided.

Copy link

nx-cloud bot commented Nov 29, 2024

☁️ Nx Cloud Report

CI is running/has finished running commands for commit 819f698. As they complete they will appear below. Click to see the status, the terminal output, and the build insights.

📂 See all runs for this CI Pipeline Execution


✅ Successfully ran 1 target

Sent with 💌 from NxCloud.

Comment on lines +20 to +21
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
//@ts-ignore
Copy link
Member

Choose a reason for hiding this comment

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

@thisismayuresh is it needed?

if (!this.PAYMENT_API_BASE_URL) return;
const url = `${this.PAYMENT_API_BASE_URL}/api/v1/transaction/${email}/history`;
const response = await axios.get(url, {
headers: {
[this.AUTH_KEY]: this.AUTH_VALUE,
},
params: {
Copy link
Member

Choose a reason for hiding this comment

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

In axios ?page=2&limit=10 reffered as params or query?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants