зеркало из https://github.com/mozilla/CSOL-site.git
Fixing API query generation bug
`DEFAULT_QUERY` was remembering previous query
This commit is contained in:
Родитель
f172ece0d2
Коммит
c0460b5dad
1
api.js
1
api.js
|
@ -23,6 +23,7 @@ function middleware (method, default_query) {
|
||||||
|
|
||||||
// Build query from various inputs
|
// Build query from various inputs
|
||||||
var query = _.extend(
|
var query = _.extend(
|
||||||
|
{},
|
||||||
DEFAULT_QUERY,
|
DEFAULT_QUERY,
|
||||||
default_query || {},
|
default_query || {},
|
||||||
req.query || {},
|
req.query || {},
|
||||||
|
|
Загрузка…
Ссылка в новой задаче