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,