codeuino / social-platform-donut-backend

Donut API:
http://donut-api-prod.codeuino.org/
GNU General Public License v3.0
24 stars 57 forks source link

[BUG] Following same account multiple times is allowed #204

Closed kaustubhai closed 3 years ago

kaustubhai commented 3 years ago

Describe the bug You can follow the same user as many times you want

Steps to Reproduce Steps to reproduce the behaviour:

  1. Send [PATCH] request at 'http://localhost:5000/user/follow/"userId"'
  2. You can send it several times and follow someone infinite times

Expected behaviour A user once followed should not be allowed to follow again