Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions repositorys/followRepository.js
Original file line number Diff line number Diff line change
Expand Up @@ -232,14 +232,14 @@ const deleteFollower = async (userId, targetUserId) => {

const getFollowersCount = async (userId) => {
const followersCount = await prisma.follow.count({
where: { follower_id: userId },
where: { following_id: userId },
});
return followersCount;
};

const getFollowingCount = async (userId) => {
const followingCount = await prisma.follow.count({
where: { following_id: userId },
where: { follower_id: userId },
});
return followingCount;
};
Expand Down
Loading