diff --git a/graph/typeDefs.graphql b/graph/typeDefs.graphql index 46f089eab..8ea71a157 100644 --- a/graph/typeDefs.graphql +++ b/graph/typeDefs.graphql @@ -938,20 +938,20 @@ input RejectUsernameInput { input AssetSettingsInput { # premodLinksEnable will put all comments that contain links into premod. - premodLinksEnable: Boolean! + premodLinksEnable: Boolean # moderation is the moderation mode for the asset. - moderation: MODERATION_MODE! + moderation: MODERATION_MODE # questionBoxEnable will enable the Question Boxs' content to be visable above # the comment box. - questionBoxEnable: Boolean! + questionBoxEnable: Boolean # questionBoxContent is the content of the Question Box. - questionBoxContent: String! + questionBoxContent: String # questionBoxIcon is the icon for the Question Box. - questionBoxIcon: String! + questionBoxIcon: String } # UpdateAssetStatusInput contains the input to change the status of a comment as diff --git a/services/assets.js b/services/assets.js index fd34a6f2b..34c8ff465 100644 --- a/services/assets.js +++ b/services/assets.js @@ -158,7 +158,7 @@ module.exports = class AssetsService { } } - return assets.limit(limit); + return assets.sort({created_at: sortOrder === 'DESC' ? -1 : 1}).limit(limit); } /**