mirror of
https://iceshrimp.dev/crimekillz/iceshrimp-161sh.git
synced 2024-11-23 20:49:06 +01:00
Add createdAt property
This commit is contained in:
parent
fe6a47b9b6
commit
4a1c484b7e
@ -22,6 +22,7 @@ export default async ({ data }) => {
|
|||||||
// Decrement following count
|
// Decrement following count
|
||||||
User.update({ _id: following.followerId }, { $inc: { followingCount: -1 } }),
|
User.update({ _id: following.followerId }, { $inc: { followingCount: -1 } }),
|
||||||
promisedFollower.then(({ followingCount }) => FollowingLog.insert({
|
promisedFollower.then(({ followingCount }) => FollowingLog.insert({
|
||||||
|
createdAt: new Date(),
|
||||||
userId: following.followerId,
|
userId: following.followerId,
|
||||||
count: followingCount - 1
|
count: followingCount - 1
|
||||||
})),
|
})),
|
||||||
@ -29,6 +30,7 @@ export default async ({ data }) => {
|
|||||||
// Decrement followers count
|
// Decrement followers count
|
||||||
User.update({ _id: following.followeeId }, { $inc: { followersCount: -1 } }),
|
User.update({ _id: following.followeeId }, { $inc: { followersCount: -1 } }),
|
||||||
promisedFollowee.then(({ followersCount }) => FollowedLog.insert({
|
promisedFollowee.then(({ followersCount }) => FollowedLog.insert({
|
||||||
|
createdAt: new Date(),
|
||||||
userId: following.followeeId,
|
userId: following.followeeId,
|
||||||
count: followersCount - 1
|
count: followersCount - 1
|
||||||
})),
|
})),
|
||||||
|
Loading…
Reference in New Issue
Block a user