fixed some bugs from review

This commit is contained in:
Wyatt Johnson
2017-09-01 11:21:30 -06:00
parent 4dbcc65126
commit 9a549a2b63
2 changed files with 6 additions and 6 deletions
+5 -5
View File
@@ -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
+1 -1
View File
@@ -158,7 +158,7 @@ module.exports = class AssetsService {
}
}
return assets.limit(limit);
return assets.sort({created_at: sortOrder === 'DESC' ? -1 : 1}).limit(limit);
}
/**