Skip to content

[Routes] Update should return error if ID doesn't exist in DB #3

@benn0k

Description

@benn0k

Expected Behavior:

If I attempt to update an ID that doesn't exist, an error should be returned that the ID does not exist in DB

Actual Behavior:

If I attempt to update an ID that doesn't exist, 201 created message is returned, but the database does not update

Referenced file:

/routes/games.route.js - //^ PUT api/games/update/

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions