netlify / gocommerce

A headless e-commerce for JAMstack sites.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Error with orders api :Bad pagination parameters

RoseannaM opened this issue · comments

- Do you want to request a feature or report a bug?
Bug

- What is the current behavior?
When querying the orders api with a combination of "from" or "to" and "billing_countries" and error is thrown:

Error loading orders: {code: 400, msg: "Bad Pagination Parameters: pq: column reference "created_at" is ambiguous"}

This does not happen with any other combination of query parameters.

- If the current behavior is a bug, please provide the steps to reproduce.

Make a call to : https://gocommerce-demo.netlify.com/.netlify/commerce/users/all/orders?per_page=50&page=1&from=1541664000&billing_countries=Germany

- What is the expected behavior?
It should not throw an error

- Please mention your Go version, and operating system version.
Ubuntu 16.04.5