Skip to content
This repository has been archived by the owner on Apr 11, 2024. It is now read-only.

Commit

Permalink
fix: Further data checking optimizations.
Browse files Browse the repository at this point in the history
  • Loading branch information
fourjuaneight committed May 24, 2022
1 parent 6496faf commit 56211a1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/handler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ export const handleRequest = async (request: Request): Promise<Response> => {
JSON.stringify({ error: "Missing 'url' parameter." }),
badReqBody
);
case payload.type !== 'Tags' &&
case payload.type === 'Insert' &&
(payload.data?.tags.length === 0 || !Array.isArray(payload.data?.tags)):
return new Response(
JSON.stringify({ error: "Missing 'tags' parameter." }),
Expand Down

0 comments on commit 56211a1

Please sign in to comment.