Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PhotoManagement Challenge - Delete unapproved photo not working #5

Open
dotnetshadow opened this issue Dec 23, 2020 · 0 comments
Open

Comments

@dotnetshadow
Copy link

dotnetshadow commented Dec 23, 2020

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 the DeletePhoto() is calling GetUserByUsernameAsync() which isn't ignoring query filters. I think it needs to use the GetUserByPhotoId() method instead

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant