Updating action type from to for consistency.

This commit is contained in:
David Jay
2017-01-11 15:42:56 -05:00
parent 5f215a95f9
commit 09e3889793
3 changed files with 5 additions and 5 deletions
+1 -1
View File
@@ -201,7 +201,7 @@ CommentSchema.statics.findByActionType = (action_type) => Action
* @return {Promise}
*/
CommentSchema.statics.findIdsByActionType = (action_type) => Action
.findCommentsIdByActionType(action_type, 'comment')
.findCommentsIdByActionType(action_type, 'comments')
.then((actions) => actions.map(a => a.item_id));
/**
+2 -2
View File
@@ -73,12 +73,12 @@ describe('models.Comment', () => {
const actions = [{
action_type: 'flag',
item_id: '3',
item_type: 'comment',
item_type: 'comments',
user_id: '123'
}, {
action_type: 'like',
item_id: '1',
item_type: 'comment',
item_type: 'comments',
user_id: '456'
}];
+2 -2
View File
@@ -58,11 +58,11 @@ describe('/api/v1/comments', () => {
const actions = [{
action_type: 'flag',
item_id: 'abc',
item_type: 'comment'
item_type: 'comments'
}, {
action_type: 'like',
item_id: 'hij',
item_type: 'comment'
item_type: 'comments'
}];
beforeEach(() => {