Skip to content

Conversation

@MundhadHarsh
Copy link

The endpoint: GET /organizations/{id} will return links which includes associated_planter currently, this link is: /planters?organization_id=${organization.id}&limit=20&offset=0 has been changed changed it to associated_planters:/organization_id=${organization.id}&limit=20&offset=0&order_by=about

����.
"joi": "^17.5.0",
"knex": "^0.95.14",
"loglevel": "^1.6.8",
"loglevel": "^1.8.0",
Copy link
Contributor

Choose a reason for hiding this comment

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

:) @MundhadHarsh what's the motivation to upgrade this lib

Copy link
Author

Choose a reason for hiding this comment

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

@dadiorchen it was not importing log from loglevel that's why I had to upgrade

const links = {
featured_trees: `/trees?organization_id=${organization.id}&limit=20&offset=0`,
associated_planters: `/planters?organization_id=${organization.id}&limit=20&offset=0`,
associated_planters: `/planters?organization_id=${organization.id}&limit=20&offset=0&order_by=about`,
Copy link
Contributor

Choose a reason for hiding this comment

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

@MundhadHarsh did you test this feature, I mean, with this order_by parameter, the SQL will try to add corresponding phrase?

Copy link
Author

Choose a reason for hiding this comment

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

No, I have not tested the feature. I made changes given in the description of #243

@Kpoke
Copy link
Collaborator

Kpoke commented Nov 13, 2023

Should be tested first and confirmed to be working

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