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

CU-864dmfjy9 - Upgrade Ghost Market API to v2 #2456

Merged
merged 1 commit into from
Jan 5, 2023
Merged

Conversation

raulduartep
Copy link
Contributor

What current issue(s) from Trello/Github does this address?

What problem does this PR solve?

How did you solve this problem?

How did you make sure your solution works?

Are there any special changes in the code that we should be aware of?

Is there anything else we should know?

  • Unit tests written?

@lllwvlvwlll
Copy link
Member

Task linked: CU-864dmfjy9 Upgrade Ghost Market API to v2

)

// eslint-disable-next-line no-console
console.log(results)
Copy link
Member

Choose a reason for hiding this comment

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

We should probably remove this log

Copy link
Contributor Author

@raulduartep raulduartep Jan 4, 2023

Choose a reason for hiding this comment

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

I forgot to remove this log. Solved


return { results: previousResults.concat(results), page, count }
}
if (!assets || !assets.length || !count) throw new Error('No assets found')
Copy link
Member

Choose a reason for hiding this comment

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

I think keeping the previous pattern of returning an empty payload makes more sense than returning an error here as there is no error that occurred - no NFT's is not really an error

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ok. Solved

@comountainclimber comountainclimber merged commit 263e3a6 into dev Jan 5, 2023
@comountainclimber comountainclimber deleted the CU-864dmfjy9 branch September 23, 2023 15:44
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