0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-03 23:00:14 -05:00
ghost/core/server/models/base
Daniel Lockyer f2ab12bb91
🐛 Fixed incorrect data returned when using API fields
refs 188de00489

- this fix was incorrect - the function should have been on the
  prototype but I'd moved it over incorrectly into the static class functions
- this commit moves `defaultColumnsToFetch` to the prototype functions
  and reverts the referenced commit back to `this.prototype` as expected
- this wasn't including the custom columns from the `post` model, which
  was causing tests to fail
- pro tip: run tests!
2021-06-24 13:47:15 +01:00
..
plugins 🐛 Fixed incorrect data returned when using API fields 2021-06-24 13:47:15 +01: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