Skip to content

Fix Function Name Conflict in create_user API #60

@avirajsingh7

Description

@avirajsingh7

The function name create_user in api/routes conflicts with the CRUD function create_user from the crud module.
So when we try to create user it is giving error

 in create_user
    user = create_user(session=session, user_create=user_in)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: create_user() got an unexpected keyword argument 'user_create'

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

Projects

Status

No status

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions