GetStream / stream-cli

Configure & manage Stream applications from the command line. 🚀
https://yarnpkg.com/en/package/getstream-cli
BSD 3-Clause "New" or "Revised" License
85 stars 19 forks source link

CLI updating channel with image null doesn't work (bug) #38

Closed SeniYG closed 2 years ago

SeniYG commented 4 years ago

Hello,

I was trying to update a channel's image field via the CLI:

stream chat:channel:update -t 'messagingMembersOnly' -c "chatRoom_9nuDGTNQoEpF7NFzHhQ71U" --image=null

But that command had an unintended effect it set the image to "null" instead of null

I tried to undo this by updating all the fields:

stream chat:channel:update -t 'messagingMembersOnly' -c "chatRoom_9nuDGTNQoEpF7NFzHhQ71U" --daisieChatRoomUuid="chatRoom_9nuDGTNQoEpF7NFzHhQ71U" \ --daisieIsBlocked=false \ --daisieIsEmptyRoom=false \ --daisieProjectUuid="project_xspmfR3Q6UdsSnjNa44tgE" \ --daisieRoomType="project" \ --name="my image is null :o" \ --image=null

But then I get an 'Unexpected arguments' error for our custom fields (like daisieRoomType).

Is there a way to set a field to null instead of "null" ?

peterdeme commented 2 years ago

This isn't applicable anymore