edit profile
This commit is contained in:
@@ -13,7 +13,7 @@ export const getFollowingCount = async (userId) => {
|
||||
};
|
||||
|
||||
export const unfollowUser = async ({ followerId, followeeId }) => {
|
||||
if (!followerId || !followeeId) throw new Error("Missing followerId/followeeId");
|
||||
if (!followerId || !followeeId) throw new Error("Erreur lors du unfollow");
|
||||
const id = `${followerId}_${followeeId}`;
|
||||
await followsRef.doc(id).delete();
|
||||
return id;
|
||||
|
||||
Reference in New Issue
Block a user