Ghost/ghost/recommendations/test
Daniel Lockyer dea639e3f6 🐛 Fixed returning HTTP 500 response when recommendations check fails
ref ENG-737
ref https://linear.app/tryghost/issue/ENG-737/http-500-errors-from-recommendations-check-endpoint

- it's still possible for `this.#externalRequest.get` to throw, like if
  DNS resolution fails
- we want to try-catch this so we don't throw from this function and
  return a HTTP 500 to the user
- instead, we can just return `undefined`, which is the fallback
- adds a breaking test too
2024-03-12 12:31:44 +01:00
..
.eslintrc.js
BookshelfClickEventRepository.test.ts
BookshelfRecommendationRepository.test.ts
BookshelfSubscribeEventRepository.test.ts
IncomingRecommendationController.test.ts
IncomingRecommendationEmailRenderer.test.ts
IncomingRecommendationService.test.ts
Recommendation.test.ts
RecommendationController.test.ts
RecommendationMetadataService.test.ts
RecommendationService.test.ts
UnsafeData.test.ts
WellknownService.test.ts