Skip to content

Commit a74e997

Browse files
committed
[ci skip] fix compile warnings
1 parent 8c7b80b commit a74e997

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

src/Server/Services/GitLab/GitLabService.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,14 +42,14 @@ public GitLabService(IConfiguration config, DefaultHttpClientProxy httpClient)
4242
public async Task<GitLabReleaseJsonResponse?> GetReleaseAsync(long projectId, string tagName) =>
4343
await HandleNotFoundAsync(
4444
await _http.GetAsync($"api/v4/projects/{projectId}/releases/{tagName}"),
45-
JsonSerializerContexts.Default.GitLabReleaseJsonResponse
45+
ServerJsonSerializerContexts.Default.GitLabReleaseJsonResponse
4646
);
4747

4848
public PaginatedEndpoint<GitLabReleaseJsonResponse> PageReleases(long projectId)
4949
=> _http.Paginate<GitLabReleaseJsonResponse>(builder => builder
5050
.WithBaseUrl($"api/v4/projects/{projectId}/releases")
5151
.WithPerPageCount(100)
52-
.WithJsonContentParser(JsonSerializerContexts.Default.IEnumerableGitLabReleaseJsonResponse)
52+
.WithJsonContentParser(ServerJsonSerializerContexts.Default.IEnumerableGitLabReleaseJsonResponse)
5353
.WithQueryStringParameters(
5454
QueryParams.Sort("desc"),
5555
QueryParams.OrderBy("created_at")

src/Server/Services/GitLab/Model/GET_ProjectRelease.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,4 +42,4 @@ public class WebLinks
4242
}
4343

4444
[JsonSerializable(typeof(IEnumerable<GitLabReleaseJsonResponse>))]
45-
public partial class JsonSerializerContexts : JsonSerializerContext;
45+
public partial class ServerJsonSerializerContexts : JsonSerializerContext;

0 commit comments

Comments
 (0)