mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-25 03:44:29 +03:00
Allowed autoRefresh
option to edit
model method
- this allows us to disable auto-refresh in Bookshelf if we don't need an updated model, which saves an extra SQL query
This commit is contained in:
parent
37383fde90
commit
45dcfa2032
@ -41,7 +41,7 @@ module.exports = function (Bookshelf) {
|
||||
case 'add':
|
||||
return baseOptions.concat(extraOptions, ['autoRefresh']);
|
||||
case 'edit':
|
||||
return baseOptions.concat(extraOptions, ['id', 'require']);
|
||||
return baseOptions.concat(extraOptions, ['id', 'require', 'autoRefresh']);
|
||||
case 'findOne':
|
||||
return baseOptions.concat(extraOptions, ['columns', 'require', 'mongoTransformer']);
|
||||
case 'findAll':
|
||||
|
Loading…
Reference in New Issue
Block a user