🐛 Fix sending "lastActive" with Mautic

This commit is contained in:
Umair Kamran 2021-04-23 11:52:53 +05:00 committed by GitHub
parent 5c65a73cc2
commit 1b754daa2f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -314,7 +314,7 @@ export class Mautic implements INodeType {
body.ipAddress = additionalFields.ipAddress as string;
}
if (additionalFields.lastActive) {
body.ipAddress = additionalFields.lastActive as string;
body.lastActive = additionalFields.lastActive as string;
}
if (additionalFields.ownerId) {
body.ownerId = additionalFields.ownerId as string;
@ -423,7 +423,7 @@ export class Mautic implements INodeType {
body.ipAddress = updateFields.ipAddress as string;
}
if (updateFields.lastActive) {
body.ipAddress = updateFields.lastActive as string;
body.lastActive = updateFields.lastActive as string;
}
if (updateFields.ownerId) {
body.ownerId = updateFields.ownerId as string;