From 849331216d41f7e20f35a6f2e70f968286196496 Mon Sep 17 00:00:00 2001 From: durmusrasit <12167194+durmusrasit@users.noreply.github.com> Date: Tue, 8 Aug 2023 00:00:28 +0300 Subject: [PATCH] feat(apps/gql): remove post id checks --- apps/gql/schema/resolvers/index.ts | 8 -------- 1 file changed, 8 deletions(-) diff --git a/apps/gql/schema/resolvers/index.ts b/apps/gql/schema/resolvers/index.ts index 35a1512c..60938be3 100644 --- a/apps/gql/schema/resolvers/index.ts +++ b/apps/gql/schema/resolvers/index.ts @@ -356,10 +356,6 @@ export const resolvers = { return NotAuthorized(); } - if (!input.postID) { - return InvalidInput("post is required"); - } - return transformPostUpvote( await actions.pano.postUpvote.create({ postID: input.postID, @@ -372,10 +368,6 @@ export const resolvers = { return NotAuthorized(); } - if (!input.postID) { - return InvalidInput("post is required"); - } - return transformPostUpvote( await actions.pano.postUpvote.remove({ postID: input.postID,