diff options
Diffstat (limited to 'src/api/endpoints/aggregation/users')
| -rw-r--r-- | src/api/endpoints/aggregation/users/reaction.ts (renamed from src/api/endpoints/aggregation/users/like.ts) | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/api/endpoints/aggregation/users/like.ts b/src/api/endpoints/aggregation/users/reaction.ts index 239acd2931..8f1919fa69 100644 --- a/src/api/endpoints/aggregation/users/like.ts +++ b/src/api/endpoints/aggregation/users/reaction.ts @@ -3,10 +3,10 @@ */ import $ from 'cafy'; import User from '../../../models/user'; -import Like from '../../../models/like'; +import Reaction from '../../../models/post-reaction'; /** - * Aggregate like of a user + * Aggregate reaction of a user * * @param {any} params * @return {Promise<any>} @@ -29,7 +29,7 @@ module.exports = (params) => new Promise(async (res, rej) => { return rej('user not found'); } - const datas = await Like + const datas = await Reaction .aggregate([ { $match: { user_id: user._id } }, { $project: { |