Skip to content

Commit

Permalink
Update addScansByPage.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
azdak committed Nov 25, 2024
1 parent 3a35b07 commit 869173b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/routes/addScansByPage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,15 @@ export const addScansByPage = async ({ request, reply }) => {
const req = request;
// check request
if (!req.urls) {
console.log(JSON.stringify(req));
return {
status: "error",
message: "An array of URLs to send is required."
};
} else {
for (const urlObj of req.urls) {
if (!validateUrl(urlObj.url)) {
console.log(req)
console.log(JSON.stringify(req));
return {
status: "error",
message: `${urlObj.url} is not a valid url.`,
Expand Down

0 comments on commit 869173b

Please sign in to comment.