Skip to content

PhotoManagement Challenge - Delete unapproved photo not working #5

Description

@dotnetshadow

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions