0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-03-11 02:12:21 -05:00
ghost/core/server
Daniel Lockyer 323074f106
🐛 Fixed error when deleting non-existent snippet
fixes https://github.com/TryGhost/Team/issues/809

- Bookshelf won't throw a `NotFoundError` unless `require=true` in the
  options
- this is present in most other API endpoints, so it's just simply
  missing from the snippet one
- without this, Ghost will crash with a 500 saying `Cannot read property
  'destroy' of null`
- this commit adds `require=true` to the destroy options for both the canary +
  v3 endpoints
2021-06-24 09:58:35 +01:00
..
adapters Replaced request module with @tryghost/request 2021-06-16 13:16:15 +01:00
api 🐛 Fixed error when deleting non-existent snippet 2021-06-24 09:58:35 +01:00
data Added additional newsletter customisation settings (#13074) 2021-06-21 13:40:40 +01:00
lib Replaced request module with @tryghost/request 2021-06-16 13:16:15 +01:00
models Moved defaultColumnsToFetch to Bookshelf CRUD plugin 2021-06-17 17:07:10 +01:00
public New logo in Admin (#12768) 2021-03-18 17:27:27 +00:00
services Updated sentry config for members site endpoint 2021-06-22 12:31:30 +05:30
views
web Replaced ghost-version.js with @tryghost/version 2021-06-16 13:16:15 +01:00
analytics-events.js Change to use @tryghost/logging 2021-06-15 15:59:11 +01:00
ghost-server.js Switch to @tryghost/debug, remove ghost-ignition 2021-06-15 17:24:22 +01:00
notify.js Change to use @tryghost/logging 2021-06-15 15:59:11 +01:00
overrides.js
run-update-check.js Move the update-check service to a scheduled job 2021-05-27 17:17:26 +02:00
update-check.js Replaced request module with @tryghost/request 2021-06-16 13:16:15 +01:00