only query for deleteScheduledAt when needed

This commit is contained in:
keyan 2023-11-20 15:38:49 -06:00
parent a12e969bd1
commit 58a9d03e28
3 changed files with 1 additions and 2 deletions

View File

@ -99,6 +99,7 @@ export default forwardRef(function Reply ({ item, onSuccess, replyOpen, children
mutation upsertComment($text: String!, $parentId: ID!, $hash: String, $hmac: String) { mutation upsertComment($text: String!, $parentId: ID!, $hash: String, $hmac: String) {
upsertComment(text: $text, parentId: $parentId, hash: $hash, hmac: $hmac) { upsertComment(text: $text, parentId: $parentId, hash: $hash, hmac: $hmac) {
...CommentFields ...CommentFields
deleteScheduledAt
comments { comments {
...CommentsRecursive ...CommentsRecursive
} }

View File

@ -6,7 +6,6 @@ export const COMMENT_FIELDS = gql`
parentId parentId
createdAt createdAt
deletedAt deletedAt
deleteScheduledAt
text text
user { user {
id id

View File

@ -55,7 +55,6 @@ export const ITEM_FULL_FIELDS = gql`
fragment ItemFullFields on Item { fragment ItemFullFields on Item {
...ItemFields ...ItemFields
text text
deleteScheduledAt
root { root {
id id
title title