fix(Mautic Node): Fix issue with owner not being set correctly (#6991)

This commit is contained in:
Jon 2023-08-23 12:02:53 +01:00 committed by GitHub
parent 00268a019a
commit 64b950f294
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -623,7 +623,7 @@ export class Mautic implements INodeType {
body.lastActive = additionalFields.lastActive as string; body.lastActive = additionalFields.lastActive as string;
} }
if (additionalFields.ownerId) { if (additionalFields.ownerId) {
body.ownerId = additionalFields.ownerId as string; body.owner = additionalFields.ownerId as string;
} }
if (additionalFields.addressUi) { if (additionalFields.addressUi) {
const addressValues = (additionalFields.addressUi as IDataObject) const addressValues = (additionalFields.addressUi as IDataObject)
@ -738,7 +738,7 @@ export class Mautic implements INodeType {
body.lastActive = updateFields.lastActive as string; body.lastActive = updateFields.lastActive as string;
} }
if (updateFields.ownerId) { if (updateFields.ownerId) {
body.ownerId = updateFields.ownerId as string; body.owner = updateFields.ownerId as string;
} }
if (updateFields.addressUi) { if (updateFields.addressUi) {
const addressValues = (updateFields.addressUi as IDataObject) const addressValues = (updateFields.addressUi as IDataObject)