mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-20 22:42:53 -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']);
|
return baseOptions.concat(extraOptions, ['id', 'require']);
|
||||||
case 'findOne':
|
case 'findOne':
|
||||||
return baseOptions.concat(extraOptions, ['require']);
|
return baseOptions.concat(extraOptions, ['require']);
|
||||||
|
case 'findAll':
|
||||||
|
return baseOptions.concat(extraOptions, ['columns']);
|
||||||
default:
|
default:
|
||||||
return baseOptions.concat(extraOptions);
|
return baseOptions.concat(extraOptions);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue