Skip to content

PhotoManagement Challenge - Delete unapproved photo not working #5

@dotnetshadow

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

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