mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-03-11 02:12:21 -05:00
Allowed filter
option for findAll
method
no-issue This will allow us to constrain findAll queries, rather than using knex `where` & `fetchAll` methods
This commit is contained in:
parent
a6354d1acb
commit
998642eb24
1 changed files with 1 additions and 1 deletions
|
@ -675,7 +675,7 @@ ghostBookshelf.Model = ghostBookshelf.Model.extend({
|
|||
case 'findOne':
|
||||
return baseOptions.concat(extraOptions, ['columns', 'require']);
|
||||
case 'findAll':
|
||||
return baseOptions.concat(extraOptions, ['columns']);
|
||||
return baseOptions.concat(extraOptions, ['filter', 'columns']);
|
||||
case 'findPage':
|
||||
return baseOptions.concat(extraOptions, ['filter', 'order', 'page', 'limit', 'columns']);
|
||||
default:
|
||||
|
|
Loading…
Add table
Reference in a new issue