summaryrefslogtreecommitdiff
path: root/src/processor/http
diff options
context:
space:
mode:
authorsyuilo <syuilotan@yahoo.co.jp>2018-04-02 23:19:07 +0900
committersyuilo <syuilotan@yahoo.co.jp>2018-04-02 23:19:07 +0900
commit5ce6fa67d212823be43c796e8632b721ede065bb (patch)
treecb188b5e97741625feb095bfb577d46b91cbacc2 /src/processor/http
parentMerge pull request #1374 from akihikodaki/log (diff)
downloadsharkey-5ce6fa67d212823be43c796e8632b721ede065bb.tar.gz
sharkey-5ce6fa67d212823be43c796e8632b721ede065bb.tar.bz2
sharkey-5ce6fa67d212823be43c796e8632b721ede065bb.zip
Make migration scripts
and use createdAt instead of _id
Diffstat (limited to 'src/processor/http')
-rw-r--r--src/processor/http/follow.ts2
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
})),