Skip to content

Commit

Permalink
fix the default null
Browse files Browse the repository at this point in the history
  • Loading branch information
dangershony committed Apr 26, 2024
1 parent 37d0fb4 commit 2df38ab
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public ProjectQueryController(IPagingHelper paging, IAngorStorage cirrusMongoDat

[HttpGet]
[Route("projects")]
public async Task<IActionResult> GetProjects( [Range(0, long.MaxValue)] int? offset = 0, [Range(1, 50)] int limit = 10)
public async Task<IActionResult> GetProjects( [Range(0, long.MaxValue)] int? offset = null, [Range(1, 50)] int limit = 10)
{
var projects = await angorStorage.GetProjectsAsync(offset, limit);

Expand All @@ -48,7 +48,7 @@ public async Task<IActionResult> GetProjectStats([MinLength(2)][MaxLength(100)]

[HttpGet]
[Route("projects/{projectId}/investments")]
public async Task<IActionResult> GetInvestments([MinLength(2)][MaxLength(100)] string projectId,[Range(0, long.MaxValue)] int? offset = 0, [Range(1, 50)] int limit = 10)
public async Task<IActionResult> GetInvestments([MinLength(2)][MaxLength(100)] string projectId,[Range(0, long.MaxValue)] int? offset = null, [Range(1, 50)] int limit = 10)
{
var projects = await angorStorage.GetProjectInvestmentsAsync(projectId, offset, limit);

Expand Down

0 comments on commit 2df38ab

Please sign in to comment.