Greenstand / treetracker-query-api

To fetch Greenstand map data for client's like web map, wallet app, and so on.
GNU General Public License v3.0
14 stars 59 forks source link

/raw-captures incorrectly parsing organization_Id #358

Closed APH1997 closed 1 year ago

APH1997 commented 1 year ago

While investigating issue 1106 on the treetracker admin client, I found that any query including organization_id sends back a validation error.

I think Joi is throwing this error because the queryFormatter function does not parse the organization_id back into an array. Route and function below:

Screenshot 2023-09-20 at 2 07 10 PM Screenshot 2023-09-20 at 1 58 24 PM
dadiorchen commented 1 year ago

I think this is a valid issue

uCryNet commented 1 year ago

I take it

uCryNet commented 1 year ago

PR: https://github.com/Greenstand/treetracker-query-api/pull/360