File tree Expand file tree Collapse file tree 3 files changed +4
-4
lines changed
src/Umbraco.Cms.Integrations.Crm.ActiveCampaign.Core Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ public class Constants
9
9
10
10
public const string FormsHttpClient = "FormsClient" ;
11
11
12
- public const int DEFAULT_PAGE_SIZE = 10 ;
12
+ public const int DefaultPageSize = 10 ;
13
13
14
14
public class Resources
15
15
{
Original file line number Diff line number Diff line change @@ -39,8 +39,8 @@ public async Task<IActionResult> GetForms(int page = 1)
39
39
var client = _httpClientFactory . CreateClient ( Constants . FormsHttpClient ) ;
40
40
41
41
var requestUriString = page == 1
42
- ? $ "{ client . BaseAddress } { ApiPath } &limit={ Constants . DEFAULT_PAGE_SIZE } "
43
- : $ "{ client . BaseAddress } { ApiPath } &limit={ Constants . DEFAULT_PAGE_SIZE } &offset={ ( page - 1 ) * Constants . DEFAULT_PAGE_SIZE } ";
42
+ ? $ "{ client . BaseAddress } { ApiPath } &limit={ Constants . DefaultPageSize } "
43
+ : $ "{ client . BaseAddress } { ApiPath } &limit={ Constants . DefaultPageSize } &offset={ ( page - 1 ) * Constants . DefaultPageSize } ";
44
44
45
45
var requestMessage = new HttpRequestMessage {
46
46
RequestUri = new Uri ( requestUriString ) ,
Original file line number Diff line number Diff line change @@ -8,6 +8,6 @@ public class MetaDto
8
8
public string Total { get ; set ; }
9
9
10
10
[ JsonPropertyName ( "totalPages" ) ]
11
- public int TotalPages => int . TryParse ( Total , out var total ) ? total / Constants . DEFAULT_PAGE_SIZE : 0 ;
11
+ public int TotalPages => int . TryParse ( Total , out var total ) ? total / Constants . DefaultPageSize : 0 ;
12
12
}
13
13
}
You can’t perform that action at this time.
0 commit comments