schmitty890 / sports-tracker

MIT License
1 stars 0 forks source link

if already subscribed to a team #68

Open schmitty890 opened 4 years ago

schmitty890 commented 4 years ago

@Habernet you brought this up. we can shoot for it to be done for dec 15 release (12.2)

if a user is already subscribed to a team, we should check to see if they are already subscribed to said team based on the id in the data attribute on the html element. if they are, we should send them a message saying they are already subscribed to that team.

schmitty890 commented 4 years ago

@Habernet i would think we need to check within the controllers/postSubscribeToTeam.js to see if the user is already subscribed to that team id. its best we check by the id or _id depending on the objects. if they are already subscribed to a team they're already subscribed to, we should not re-subscribe them.