Add role parameter to user:update (Zulip) (#2336)

*  Add role parameter to user:update

* ✏️ Fix typo issue
This commit is contained in:
Ricardo Espinoza
2021-11-10 18:03:45 -05:00
committed by GitHub
parent 3c6f38d045
commit 1a1bc26ecf
3 changed files with 35 additions and 2 deletions

View File

@@ -431,6 +431,9 @@ export class Zulip implements INodeType {
if (additionalFields.isGuest) {
body.is_guest = additionalFields.isGuest as boolean;
}
if (additionalFields.role) {
body.role = additionalFields.role as number;
}
if (additionalFields.profileData) {
//@ts-ignore
body.profile_data = additionalFields.profileData.properties as [{}];