Skip to content

Commit

Permalink
remove sub bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
itamarshubin committed Mar 18, 2024
1 parent e69d1f1 commit 861272d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/constants/subscription.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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}, לא תקבל יותר עדכונים עליו`
Expand Down

0 comments on commit 861272d

Please sign in to comment.