Skip to content

sort offers by floorDifference#72

Merged
louisholley merged 9 commits intodevfrom
feat/collection-offers-test
Apr 6, 2023
Merged

sort offers by floorDifference#72
louisholley merged 9 commits intodevfrom
feat/collection-offers-test

Conversation

@louisholley
Copy link
Copy Markdown
Contributor

@louisholley louisholley commented Apr 5, 2023

this pr:

  • implements sorting offers by floorDifference
  • adds tests for offers/collection offers related queries

@louisholley louisholley changed the title collection offers tests sort offers by floorDifference Apr 6, 2023
const sortDirection = sort[sortProperty]

// workaround for the floorDifference computed column
if (sortProperty === "floorDifference") {
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

need to have a manual workaround for floorDifference as I can't get typeorm to return it from the query 😕

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

let's validate for the time being and extract it as a github issue to tackle on eventually

@louisholley louisholley merged commit 05c4b99 into dev Apr 6, 2023
@louisholley louisholley deleted the feat/collection-offers-test branch April 6, 2023 11:05
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.

2 participants