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 5e7b037 commit 3a4d0d6
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/routes/addScansByPage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,12 @@ urls:

export const addScansByPage = async ({ request, reply }) => {

const data = request.body;
const data = JSON.parse(request.body);
return {
status: "error",
message: JSON.stringify(data)
};

// check request
if (!data.urls) {
return {
Expand Down

0 comments on commit 3a4d0d6

Please sign in to comment.