We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8b92498 commit fc5f765Copy full SHA for fc5f765
src/Umbraco.Cms.Integrations.Crm.ActiveCampaign/Models/Dtos/MetaDto.cs
@@ -8,6 +8,8 @@ public class MetaDto
8
public string Total { get; set; }
9
10
[JsonPropertyName("totalPages")]
11
- public int TotalPages => int.TryParse(Total, out var total) ? total / Constants.DefaultPageSize : 0;
+ public int TotalPages => int.TryParse(Total, out var total)
12
+ ? (int)Math.Ceiling((double)total / Constants.DefaultPageSize)
13
+ : 0;
14
}
15
0 commit comments