Ghost/core/server/models/base
Daniel Lockyer 8fcb57bd6a Disabled new Bookshelf fetch behaviour across models
- as per https://github.com/bookshelf/bookshelf/wiki/Migrating-from-0.15.1-to-1.0.0#default-to-require-true-on-modelfetch-and-collectionfetchone, models will now default to `{require:true}` during a fetch, which changes how Bookshelf will respond when a models yields no results
- instead of passing a `null` result, it will reject with an error, so we'd need to switch to `.catch`ing everything
- our code is set up to handle all these null results and switching style is not currently on the cards so we want to use the existing behaviour for now
- to enable this, the `requireFetch` option needs to be added to the model definitions
2021-09-10 16:59:11 +01:00
..
plugins Added bulkEdit to bulk-operations bookshelf plugin (#13223) 2021-08-13 12:19:02 +01:00
bookshelf.js Extracted Bookshelf method overrides to plugin 2021-06-17 15:02:34 +01:00
index.js Disabled new Bookshelf fetch behaviour across models 2021-09-10 16:59:11 +01:00
listeners.js Added comments to all usages of lib/common/events 2021-07-07 16:02:44 +01:00
utils.js Updated bson-objectid calls to match API change 2021-04-21 16:23:52 +01:00