From 58a9d03e28a289e33c2e73a22fa7c69a0c789bf9 Mon Sep 17 00:00:00 2001 From: keyan Date: Mon, 20 Nov 2023 15:38:49 -0600 Subject: [PATCH] only query for deleteScheduledAt when needed --- components/reply.js | 1 + fragments/comments.js | 1 - fragments/items.js | 1 - 3 files changed, 1 insertion(+), 2 deletions(-) diff --git a/components/reply.js b/components/reply.js index 43feb905..97cef419 100644 --- a/components/reply.js +++ b/components/reply.js @@ -99,6 +99,7 @@ export default forwardRef(function Reply ({ item, onSuccess, replyOpen, children mutation upsertComment($text: String!, $parentId: ID!, $hash: String, $hmac: String) { upsertComment(text: $text, parentId: $parentId, hash: $hash, hmac: $hmac) { ...CommentFields + deleteScheduledAt comments { ...CommentsRecursive } diff --git a/fragments/comments.js b/fragments/comments.js index 69afcf59..858d3856 100644 --- a/fragments/comments.js +++ b/fragments/comments.js @@ -6,7 +6,6 @@ export const COMMENT_FIELDS = gql` parentId createdAt deletedAt - deleteScheduledAt text user { id diff --git a/fragments/items.js b/fragments/items.js index 4362ee0d..48623924 100644 --- a/fragments/items.js +++ b/fragments/items.js @@ -55,7 +55,6 @@ export const ITEM_FULL_FIELDS = gql` fragment ItemFullFields on Item { ...ItemFields text - deleteScheduledAt root { id title