summaryrefslogtreecommitdiff
path: root/src/processor
diff options
context:
space:
mode:
Diffstat (limited to 'src/processor')
-rw-r--r--src/processor/http/unfollow.ts2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/processor/http/unfollow.ts b/src/processor/http/unfollow.ts
index 4a8f033914..d3d5f2246f 100644
--- a/src/processor/http/unfollow.ts
+++ b/src/processor/http/unfollow.ts
@@ -22,6 +22,7 @@ export default async ({ data }) => {
// Decrement following count
User.update({ _id: following.followerId }, { $inc: { followingCount: -1 } }),
promisedFollower.then(({ followingCount }) => FollowingLog.insert({
+ createdAt: new Date(),
userId: following.followerId,
count: followingCount - 1
})),
@@ -29,6 +30,7 @@ export default async ({ data }) => {
// Decrement followers count
User.update({ _id: following.followeeId }, { $inc: { followersCount: -1 } }),
promisedFollowee.then(({ followersCount }) => FollowedLog.insert({
+ createdAt: new Date(),
userId: following.followeeId,
count: followersCount - 1
})),