You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
While completing the photo management challenge I noticed that if you login as a user and go to Edit Photos, when you upload a photo, it's in an awaiting approval state. So if you try to delete this photo you will get an error.
In the UserController the DeletePhoto() is calling GetUserByUsernameAsync() which isn't ignoring query filters. I think it needs to use the GetUserByPhotoId() method instead
The text was updated successfully, but these errors were encountered:
rewgoes
added a commit
to rewgoes/DatingApp
that referenced
this issue
Feb 15, 2021
Hi there,
While completing the photo management challenge I noticed that if you login as a user and go to Edit Photos, when you upload a photo, it's in an awaiting approval state. So if you try to delete this photo you will get an error.
In the
UserController
theDeletePhoto()
is callingGetUserByUsernameAsync()
which isn't ignoring query filters. I think it needs to use theGetUserByPhotoId()
method insteadThe text was updated successfully, but these errors were encountered: