Skip to content
This repository has been archived by the owner on Mar 29, 2024. It is now read-only.

Commit

Permalink
🐛 fix the error handler
Browse files Browse the repository at this point in the history
  • Loading branch information
fgruchala committed Feb 25, 2019
1 parent 5cfda81 commit 1235a34
Showing 1 changed file with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,5 @@ export default (data, context) => {

return editionsService.findOne(editionId)
.then(edition => editionsService.findOneOnConferenceHall(edition.conferenceHall.eventId, edition.conferenceHall.apiKey))
.then(edition => edition.speakers)
.catch(err => {
throw new functions.https.HttpsError('internal', err);
});
.then(edition => edition.speakers);
};

0 comments on commit 1235a34

Please sign in to comment.