Skip to content

Commit

Permalink
build: fix dashboard deployment (angular#5610)
Browse files Browse the repository at this point in the history
* Fixes the dashboard deployment to Firebase. Currently the deployment is being cancelled because the functions are having compilation errors (due to TypeScript definition updates of `express`)
  • Loading branch information
devversion authored and mmalerba committed Jul 9, 2017
1 parent 1936d9e commit 5f9a64b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tools/dashboard/functions/payload-github-status.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ export const payloadGithubStatus = https.onRequest(async (request, response) =>
const authToken = request.header('auth-token');
const commitSha = request.header('commit-sha');
const packageName = request.header('package-name');
const packageSize = parseFloat(request.header('package-full-size'));
const packageDiff = parseFloat(request.header('package-size-diff'));
const packageSize = parseFloat(request.header('package-full-size') || '');
const packageDiff = parseFloat(request.header('package-size-diff') || '');

if (!verifyToken(authToken)) {
if (!authToken || !verifyToken(authToken)) {
return response.status(403).json({message: 'Auth token is not valid'});
}

Expand Down

0 comments on commit 5f9a64b

Please sign in to comment.