0
Fork 0
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:
kirrg001 2018-10-12 19:56:50 +02:00 committed by Katharina Irrgang
parent adc5b18fb7
commit 976699336b

View file

@ -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);
}