0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-10 23:36:14 -05:00
ghost/core/server/models/base/plugins
Naz 5584430ddc 🐛 Fixed a 500 error for incorrect fields parameter in API
closes https://github.com/TryGhost/Team/issues/817
refs 6d083ee00e/packages/bookshelf-pagination/lib/bookshelf-pagination.js (L256)

- The 500 error is not the best we can do in this situation and throwing a 400 just like we doo in a referenced commit would keep the convention
- The underlying problem of the bug is bigger - we allow the fields named the same way as relations to leak into the db query and that causes an incorrect SQL syntax. It's a bigger problem which would need a separate, holistic approach
2021-07-05 18:46:02 +04:00
..
actions.js
bulk-operations.js Refactored out local DB require in bulk-operations plugin 2021-06-17 13:16:11 +01:00
crud.js 🐛 Fixed a 500 error for incorrect fields parameter in API 2021-07-05 18:46:02 +04:00
data-manipulation.js
events.js Moved setId function to Bookshelf events plugin 2021-06-17 17:07:10 +01:00
filtered-collection.js
generate-slug.js
overrides.js Moved formatOnWrite function to Bookshelf override plugin 2021-06-17 16:47:47 +01:00
raw-knex.js
sanitize.js
user-type.js