mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-06 22:40:14 -05:00
Allowed columns
options for findAll
no issue - otherwise you can't filter the query
This commit is contained in:
parent
adc5b18fb7
commit
976699336b
1 changed files with 2 additions and 0 deletions
|
@ -510,6 +510,8 @@ ghostBookshelf.Model = ghostBookshelf.Model.extend({
|
|||
return baseOptions.concat(extraOptions, ['id', 'require']);
|
||||
case 'findOne':
|
||||
return baseOptions.concat(extraOptions, ['require']);
|
||||
case 'findAll':
|
||||
return baseOptions.concat(extraOptions, ['columns']);
|
||||
default:
|
||||
return baseOptions.concat(extraOptions);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue