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 b361f76 commit 8253020
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/routes/addScansByPage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,13 @@ export const addScansByPage = async ({ request, reply }) => {


// check request
if (!data?.urls) {
if (!data.urls) {
return {
status: "error",
message: "An array of URLs to send is required."
};
} else {
for (const urlObj of data.urls as Array<UrlForScan>) {
for (const urlObj of data.urls) {
if (!validateUrl(urlObj.url)) {
return {
status: "error",
Expand Down

0 comments on commit 8253020

Please sign in to comment.