diff options
Diffstat (limited to 'src/processor')
| -rw-r--r-- | src/processor/http/follow.ts | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/processor/http/follow.ts b/src/processor/http/follow.ts index 29ac9fa552..cbb7838c68 100644 --- a/src/processor/http/follow.ts +++ b/src/processor/http/follow.ts @@ -24,6 +24,7 @@ export default ({ data }, done) => Following.findOne({ _id: data.following }).th }), promisedFollower.then(({ followingCount }) => FollowingLog.insert({ + createdAt: data.following.createdAt, userId: followerId, count: followingCount + 1 })), @@ -36,6 +37,7 @@ export default ({ data }, done) => Following.findOne({ _id: data.following }).th }), promisedFollowee.then(({ followersCount }) => FollowedLog.insert({ + createdAt: data.following.createdAt, userId: followerId, count: followersCount + 1 })), |