Skip to content
This repository was archived by the owner on Sep 6, 2021. It is now read-only.

Commit 4e858f2

Browse files
author
Rayhan Arayilakath
committed
Squashed Bugs in User Refactor
1 parent c339ab4 commit 4e858f2

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/classes/User.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -123,8 +123,8 @@ class User {
123123
user { ${constants.userAttributes} },
124124
board { ${constants.boardAttributes} },
125125
repl { ${constants.replAttributes} },
126-
comments(count: ${global.initVariables.previewCount.comments || 10}) { ${constants.commentAttributes} },
127-
votes { id, user { ${constants.userAttributes} } },
126+
comments(count: ${global.initVariables.previewCount.comments || 10}) { items { ${constants.commentAttributes} } },
127+
votes { items { id, user { ${constants.userAttributes} } } },
128128
answeredBy { ${constants.userAttributes} },
129129
answer { ${ constants.commentAttributes} }
130130
}
@@ -245,15 +245,15 @@ class User {
245245
items {
246246
${constants.commentAttributes},
247247
parentComment { ${constants.commentAttributes} },
248-
comments(count: ${global.initVariables.previewCount.comments || 10}) { ${constants.commentAttributes} },
248+
comments { ${constants.commentAttributes} },
249249
user { ${constants.userAttributes} },
250250
post {
251251
${constants.postAttributes},
252252
user { ${constants.userAttributes} },
253253
board { ${constants.boardAttributes} },
254254
repl { ${constants.replAttributes} },
255-
comments(count: ${global.initVariables.previewCount.comments || 10}) { ${constants.commentAttributes} },
256-
votes { id, user { ${constants.userAttributes} } },
255+
comments(count: ${global.initVariables.previewCount.comments || 10}) { items { ${constants.commentAttributes} } },
256+
votes { items { id, user { ${constants.userAttributes} } } },
257257
answeredBy { ${constants.userAttributes} },
258258
answer { ${ constants.commentAttributes} }
259259
}

0 commit comments

Comments
 (0)