Skip to content

Commit 7df8991

Browse files
committed
Correct property type to adjust inconsistency with Zapier
1 parent 8fcecfe commit 7df8991

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Umbraco.Cms.Integrations.Automation.Zapier/Controllers/PollingController.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ public IEnumerable<PublishedContentDto> GetSampleContent()
8282

8383
return rootNodes.Select(p => new PublishedContentDto
8484
{
85-
Id = p.Id,
85+
Id = p.Id.ToString(),
8686
Name = p.Name,
8787
PublishDate = p.PublishDate.Value.ToString()
8888
});

src/Umbraco.Cms.Integrations.Automation.Zapier/Models/Dtos/PublishedContentDto.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ namespace Umbraco.Cms.Integrations.Automation.Zapier.Models.Dtos
55
public class PublishedContentDto
66
{
77
[JsonProperty("id")]
8-
public int Id { get; set; }
8+
public string Id { get; set; }
99

1010
[JsonProperty("name")]
1111
public string Name { get; set; }

0 commit comments

Comments
 (0)