diff --git a/src/constants/subscription.ts b/src/constants/subscription.ts index 982c469..2e9b9e2 100644 --- a/src/constants/subscription.ts +++ b/src/constants/subscription.ts @@ -99,6 +99,9 @@ export const removeAlertSubscription = async (msg: Message) => { await updateDoc(userToRemove.ref, { subscribedUsers: arrayRemove(userRef.ref), }); + await updateDoc(userRef.ref, { + subscribedTo: arrayRemove(userToRemove.ref), + }); client.sendMessage( msg.from, `הסרנו את ${userToRemove.data()?.name}, לא תקבל יותר עדכונים עליו`