Ghost/core/server/models/base
Naz 2c1ae2e9af 🐛 Fixed a 500 error for incorrect fields parameter in API
refs 8a1fd1f57f
refs 5584430ddc

- The change to async/await in the original commit 558443 was causing problems in downstream dependencies (create-error package) where it was loosing a context of "this". It's not a direct dependency so I didn't go yak shaving into where exacly the context is lost.
- The fix to keep a correct context of "this" was sticking to an existing pattern using regular function returning promises. Once we need to redo them into async/await we can investigate if there's a way around create-error's context prolbem
2021-07-06 11:58:37 +04:00
..
plugins 🐛 Fixed a 500 error for incorrect fields parameter in API 2021-07-06 11:58:37 +04:00
bookshelf.js Extracted Bookshelf method overrides to plugin 2021-06-17 15:02:34 +01:00
index.js Moved defaultColumnsToFetch to Bookshelf CRUD plugin 2021-06-17 17:07:10 +01:00
listeners.js Refactored Bookshelf CRUD functions into plugin 2021-06-15 18:27:43 +01:00
utils.js Updated bson-objectid calls to match API change 2021-04-21 16:23:52 +01:00