Closed SeniYG closed 2 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" ?
This isn't applicable anymore
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" ?