diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2018-04-02 23:19:07 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2018-04-02 23:19:07 +0900 |
| commit | 5ce6fa67d212823be43c796e8632b721ede065bb (patch) | |
| tree | cb188b5e97741625feb095bfb577d46b91cbacc2 /src/processor/http/follow.ts | |
| parent | Merge pull request #1374 from akihikodaki/log (diff) | |
| download | sharkey-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/follow.ts')
| -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 })), |