-
Notifications
You must be signed in to change notification settings - Fork 60
Get /organizations/{id} change the order for associated planters #243 #256
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
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -26,7 +26,7 @@ function getByFilter( | |
| function getOrganizationLinks(organization) { | ||
| 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`, | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe 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?
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe 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 |
||
| species: `/species?organization_id=${organization.id}&limit=20&offset=0`, | ||
| }; | ||
| return links; | ||
|
|
||
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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