diff --git a/api/resolvers/item.js b/api/resolvers/item.js index 6a930e37..c4b01830 100644 --- a/api/resolvers/item.js +++ b/api/resolvers/item.js @@ -768,11 +768,6 @@ export default { return sats || 0 }, - meComments: async (item, args, { me, models }) => { - if (!me) return 0 - - return await models.item.count({ where: { userId: me.id, parentId: item.id } }) - }, mine: async (item, args, { me, models }) => { return me?.id === item.userId }, diff --git a/api/typeDefs/item.js b/api/typeDefs/item.js index 1c6cb937..274b3b36 100644 --- a/api/typeDefs/item.js +++ b/api/typeDefs/item.js @@ -79,7 +79,6 @@ export default gql` upvotes: Int! meSats: Int! paidImgLink: Boolean - meComments: Int! ncomments: Int! comments: [Item!]! path: String diff --git a/components/comment.js b/components/comment.js index db840e80..a258e3a4 100644 --- a/components/comment.js +++ b/components/comment.js @@ -109,7 +109,7 @@ export default function Comment ({