0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-17 23:44:39 -05:00
ghost/core/server/api/v2
Daniel Lockyer a769bbe86c Fixed 500 error when deleting items that don't exist
fixes #11723

- when deleting an invite/label/tag/webhook that doesn't
  exist, Ghost would throw a 500 error
- this commit catches the NotFoundError
- also rejects from model if nothing was found
- spotted in Sentry
2020-04-13 16:13:33 +01:00
..
utils Moved htmlToMobiledocConverter() out of renderers 2020-03-19 12:18:54 +00:00
actions.js
authentication.js
authors-public.js
config.js
db.js
images.js
index.js
integrations.js Returned Promise.reject instead of throwing error 2020-04-13 16:13:33 +01:00
invites.js Fixed 500 error when deleting items that don't exist 2020-04-13 16:13:33 +01:00
mail.js
notifications.js
oembed.js Updated oembed requests to use consistent timeout and user-agent 2020-04-07 15:29:31 +01:00
pages-public.js
pages.js Returned Promise.reject instead of throwing error 2020-04-13 16:13:33 +01:00
posts-public.js
posts.js Returned Promise.reject instead of throwing error 2020-04-13 16:13:33 +01:00
preview.js
redirects.js
roles.js
schedules.js
session.js
settings-public.js
settings.js
site.js
slack.js
slugs.js Remove External Apps 2020-03-20 10:40:22 +00:00
tags-public.js
tags.js Fixed 500 error when deleting items that don't exist 2020-04-13 16:13:33 +01:00
themes.js
users.js Replaced use of Bluebird return method from knex code 2020-04-07 10:49:12 +01:00
webhooks.js Fixed 500 error when deleting items that don't exist 2020-04-13 16:13:33 +01:00