Skip to content

Commit 733f605

Browse files
committed
PR updates
1 parent 5ea97b6 commit 733f605

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/Umbraco.Forms.Integrations.Crm.Hubspot/Configuration/HubspotSettings.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,6 @@ public HubspotSettings(NameValueCollection appSettings)
1212
? result : false;
1313
}
1414

15-
public bool AllowContactUpdate { get; set; }
15+
public bool AllowContactUpdate { get; }
1616
}
1717
}

src/Umbraco.Forms.Integrations.Crm.Hubspot/Services/HubspotContactService.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -200,11 +200,11 @@ public async Task<CommandResult> PostContactAsync(Record record, List<MappedProp
200200
if (response.StatusCode == HttpStatusCode.Conflict)
201201
{
202202
if (!_settings.AllowContactUpdate)
203-
_logger.Error<HubspotContactService>("Hubspot contact update is not allowed.");
203+
_logger.Info<HubspotContactService>("Contact already exists in HubSpot CRM and workflow is configured to not apply updates, so update of information was skipped.");
204204

205205
return _settings.AllowContactUpdate
206206
? await UpdateContactAsync(record, authenticationDetails, propertiesRequestV1, emailValue)
207-
: CommandResult.Failed;
207+
: CommandResult.Success;
208208
}
209209
else
210210
{

0 commit comments

Comments
 (0)