User / Stream update fix

This commit is contained in:
Rupenieks 2020-05-25 09:19:06 +02:00
parent f9c5689d45
commit e3bc4b9052

View file

@ -343,10 +343,10 @@ export class Zulip implements INodeType {
const additionalFields = this.getNodeParameter('additionalFields', i) as IDataObject;
if (additionalFields.description) {
body.description = additionalFields.description as string;
body.description = JSON.stringify(additionalFields.description as string);
}
if (additionalFields.newName) {
body.new_name = additionalFields.newName as string;
body.new_name = JSON.stringify(additionalFields.newName as string);
}
if (additionalFields.isPrivate) {
body.is_private = additionalFields.isPrivate as boolean;
@ -412,7 +412,7 @@ export class Zulip implements INodeType {
const additionalFields = this.getNodeParameter('additionalFields', i) as IDataObject;
if (additionalFields.fullName) {
body.full_name = additionalFields.fullName as string;
body.full_name = JSON.stringify(additionalFields.fullName as string);
}
if (additionalFields.isAdmin) {
body.is_admin = additionalFields.isAdmin as boolean;