mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-21 01:41:46 +03:00
8fcb57bd6a
- 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 |
||
---|---|---|
.. | ||
plugins | ||
bookshelf.js | ||
index.js | ||
listeners.js | ||
utils.js |