changed sort -> sortOrder

This commit is contained in:
Wyatt Johnson
2017-08-25 09:59:37 -06:00
parent 48595a1bbf
commit 8a5db167ff
14 changed files with 75 additions and 79 deletions
+5 -9
View File
@@ -14,7 +14,7 @@ const Comment = {
user({author_id}, _, {loaders: {Users}}) {
return Users.getByID.load(author_id);
},
replies({id, asset_id, reply_count}, {query: {sort, sortBy, limit, excludeIgnored}}, {loaders: {Comments}}) {
replies({id, asset_id, reply_count}, {query}, {loaders: {Comments}}) {
// Don't bother looking up replies if there aren't any there!
if (reply_count === 0) {
@@ -24,14 +24,10 @@ const Comment = {
};
}
return Comments.getByQuery({
asset_id,
parent_id: id,
sort,
sortBy,
limit,
excludeIgnored,
});
query.asset_id = asset_id;
query.parent_id = id;
return Comments.getByQuery(query);
},
replyCount({reply_count}) {