alkem-io / server

Core server in the Alkemio platform, offering a GraphQL api for interacting with the logical domain model.
http://alkem.io
European Union Public License 1.2
24 stars 4 forks source link

BUG: Update user request is failing #895

Closed Comoque1 closed 3 years ago

Comoque1 commented 3 years ago

Describe the bug Update user request is failing.

To Reproduce Steps to reproduce the behavior: Precondition: set authEnabled:true in .env file.

  1. Go to https://dev.cherrytwist.org/graphql
  2. Perform the following mutation:
    mutation UpdateUser($userData: UpdateUserInput!) {
    updateUser(userData: $userData) {
    name,
    email
    }
    }
    {
    "userData":
    {
    "ID": "31",
    "name": "k"
    }
    }
  3. Error is thrown: "message": "Cannot read property 'toLowerCase' of undefined" image.png

Expected behavior User must be updated successfully.

techsmyth commented 3 years ago

Not reproducible for me using a local instance...

Comoque1 commented 3 years ago

Not reproducible for me using a local instance...

Should have authEnabled:true in .env file.