Skip to content

Commit

Permalink
feat(apps/gql): remove post id checks
Browse files Browse the repository at this point in the history
  • Loading branch information
rasitds committed Aug 7, 2023
1 parent 1e95067 commit 8493312
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions apps/gql/schema/resolvers/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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,
Expand Down

0 comments on commit 8493312

Please sign in to comment.