mirror of
https://github.com/misskey-dev/misskey.git
synced 2026-03-22 12:03:39 +00:00
Make migration scripts
and use createdAt instead of _id
This commit is contained in:
@@ -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
|
||||
})),
|
||||
|
||||
Reference in New Issue
Block a user