-
Notifications
You must be signed in to change notification settings - Fork 20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
update_user example fails #11
Comments
thanks for reporting this, in the meantime can you try |
You mean like client.update_user([{
'id' => 'bob-1',
'role' => 'admin',
'name' => 'Robert Tables'
}]) ? Gives me
|
Just recreated this and the following works: # update a single user
client.update_user({
:id => 'bob-1',
:role => 'admin',
:name => 'Robert Tables'
})
# update multiple users
client.update_users([{
:id => 'bob-1',
:role => 'admin',
:name => 'Robert Tables'
}]) Turns out the keys need to be symbols not strings. I'll update the specific example right away. I'm not sure which other examples have similar problems. |
@bogdan-d any advice here? |
Copying what I put in #12 I've fixed this specific issue, but there seems to be a lot of inconsistencies here. Like this one which uses strings.
Easiest fix is to switch to using rails' |
Using symbols as hash keys is preferred in ruby, as they are immutable and not trigger GC. |
@tbarbugli can you please unassign me :D it seems I don't have permissions. |
@keyneston 👋🏻 replaced with me 😃 |
@peterdeme can you please also check this issue out when you will have time? Should be a quick one. Thank you. |
Running
, as seen in the README, fails with error
users[] is a required field
.Details of what I did:
The text was updated successfully, but these errors were encountered: