mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-03-11 02:12:21 -05:00
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 |
||
---|---|---|
.. | ||
adapters | ||
api | ||
data | ||
lib | ||
models | ||
public | ||
services | ||
views | ||
web | ||
analytics-events.js | ||
ghost-server.js | ||
notify.js | ||
overrides.js | ||
run-update-check.js | ||
update-check.js |