Skip to content

Code for updating the user information is wrong #17

@parikshitgupta3

Description

@parikshitgupta3

In backend->routes->user

await User.updateOne(req.body, {
    id: req.userId
})

res.json({
    message: "Updated successfully"
})

updateOne takes filter as the first argument and updated information as the second argument, but opposite is been done here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions