aboutsummaryrefslogtreecommitdiffstats
path: root/src/ts/types/comments.ts
diff options
context:
space:
mode:
authorArmand Philippot <git@armandphilippot.com>2022-02-14 13:57:06 +0100
committerArmand Philippot <git@armandphilippot.com>2022-02-14 14:15:54 +0100
commit637350e4d152de1346857d645bda8443900ec6f4 (patch)
tree23b43c7ce7e25935efe5b1dd156ad186334ee956 /src/ts/types/comments.ts
parent9c150f28e4a23dfb4965fc3a4cdee16933a3def5 (diff)
fix: update comments list when a new comment is send
The comments list was static before. If an user posted a comment, even after it was approved, the comments list was keeping the old state.
Diffstat (limited to 'src/ts/types/comments.ts')
-rw-r--r--src/ts/types/comments.ts8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/ts/types/comments.ts b/src/ts/types/comments.ts
index 75e7d23..36bd98c 100644
--- a/src/ts/types/comments.ts
+++ b/src/ts/types/comments.ts
@@ -2,6 +2,14 @@
// Comments query
//==============================================================================
+export type CommentsByPostId = {
+ postBy: {
+ comments: {
+ nodes: RawComment[];
+ };
+ };
+};
+
export type CommentAuthor = {
gravatarUrl: string;
name: string;