edit profile

This commit is contained in:
2025-08-29 14:31:03 +02:00
parent 5473beb988
commit 87d89c1240
8 changed files with 153 additions and 66 deletions
+1 -1
View File
@@ -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;