Skip to content

Commit

Permalink
Update deletePages.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
azdak committed Dec 20, 2024
1 parent aed6719 commit e0fa4d3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/routes/deletePages.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@ import { jwtClaims } from '#src/app';
import { db, validateUuid } from '#src/utils';

export const deletePages = async ({ request, reply }) => {
const req = request.query;
const req = JSON.parse(request.query);

if (!Array.isArray(req.pageIds)) {
return {
status: "error",
message: `${req.urls.stringify()} is not an array of page IDs.`
message: `${req.urls} is not an array of page IDs.`
};
} else {
for (const url of req.pageIds) {
Expand Down

0 comments on commit e0fa4d3

Please sign in to comment.