Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Reporting] Rewrite addForceNowQuerystring to getFullUrls #44851

Prev Previous commit
Next Next commit
fix unit test
  • Loading branch information
tsullivan committed Sep 6, 2019
commit 14c199f4518088b6815a8ee7d9ad19cecebe3949
Original file line number Diff line number Diff line change
@@ -33,6 +33,10 @@ export async function getFullUrls({
} else if (job.objects) {
// multi page (pdf)
relativeUrls = job.objects.map((obj: KeyedRelativeUrl) => obj.relativeUrl);
} else {
throw new Error(
`No valid URL fields found in Job Params! Expected \`job.relativeUrl\` or \`job.objects[{ relativeUrl }]\``
);
}

const absoluteUrls = relativeUrls.map(relativeUrl => {