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 Added v2 actions endpoint 2019-02-06 21:36:09 +01:00
authentication.js Switched to use v2 http module instead of ovelooked v1 2019-08-01 13:06:15 +02:00
authors-public.js Renamed authors ctrl to authors-public 2019-02-26 08:33:10 +01:00
config.js Added "useGravatar" to config endpoint in Admin API v2 2019-02-25 15:39:47 +01:00
db.js Changed backup service signature to be able to expand it 2020-02-10 12:41:39 +00:00
images.js Renamed uploads to images 2019-02-24 11:18:45 +07:00
index.js Merge branch 'master' into v3 2019-10-11 11:31:31 +01:00
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 Updated links to docs (#10941) 2019-07-22 18:17:50 +08:00
notifications.js 🎨 Made notifications dismissible per user 2019-04-19 09:43:14 +02:00
oembed.js Updated oembed requests to use consistent timeout and user-agent 2020-04-07 15:29:31 +01:00
pages-public.js Separated pages & posts in Admin API v2 (#10494) 2019-02-22 10:17:14 +07:00
pages.js Returned Promise.reject instead of throwing error 2020-04-13 16:13:33 +01:00
posts-public.js Separated pages & posts in Admin API v2 (#10494) 2019-02-22 10:17:14 +07:00
posts.js Returned Promise.reject instead of throwing error 2020-04-13 16:13:33 +01:00
preview.js Separated pages & posts in Admin API v2 (#10494) 2019-02-22 10:17:14 +07:00
redirects.js Extracted frontend code from redirects API controllers (#10798) 2019-06-21 16:50:16 +02:00
roles.js Migrated roles controller to API v2 2018-10-10 16:48:22 +02:00
schedules.js 🏗 Migrated scheduler to work with v2 API (#11142) 2019-09-23 21:42:53 +05:30
session.js 💡Migrated session controllers for compatibility with "frame" (#11101) 2019-09-11 11:28:55 +02:00
settings-public.js 🎨 Added url value to the Content API /settings/ endpoint (#10946) 2019-07-24 11:12:07 +01:00
settings.js Added permission restrictions to editing members flag (#11217) 2019-10-09 10:26:54 +02:00
site.js Migrated to use url-utils from Ghost-SDK (#10787) 2019-06-18 15:13:55 +02:00
slack.js Added slack controller to v2 API (#10086) 2018-11-06 23:20:43 +01:00
slugs.js Remove External Apps 2020-03-20 10:40:22 +00:00
tags-public.js Added plugin based author and public tag models in API v2 (#10284) 2019-01-03 20:30:35 +01:00
tags.js Fixed 500 error when deleting items that don't exist 2020-04-13 16:13:33 +01:00
themes.js 🐛 Fixed cache invalidation header on theme override 2019-07-17 18:41:25 +05:30
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