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

Commit

Permalink
Browse files Browse the repository at this point in the history
…nctions into develop
  • Loading branch information
fgruchala committed Feb 25, 2019
2 parents 1235a34 + c752493 commit 23afeb0
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ export default (data, context) => {
const editionId = data.editionId;
console.log('editionId', editionId);

if (!context.auth) {
throw new functions.https.HttpsError('unauthenticated', 'You must be authenticated to access this resource.');
}

if (editionId === undefined) {
throw new functions.https.HttpsError('invalid-argument', 'Required editionId field in the request.');
}
Expand Down

0 comments on commit 23afeb0

Please sign in to comment.