Skip to content

Commit cbe8614

Browse files
committed
Fix contest list fetching
1 parent ac95208 commit cbe8614

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Refresh.Interfaces.APIv3/Endpoints/ContestApiEndpoints.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ public class ContestApiEndpoints : EndpointGroup
2727
public ApiListResponse<ApiContestResponse> GetAllContests(RequestContext context, GameDatabaseContext database,
2828
DataContext dataContext)
2929
{
30-
return new ApiListResponse<ApiContestResponse>(ApiContestResponse.FromOldList(database.GetAllContests(), dataContext));
30+
return new ApiListResponse<ApiContestResponse>(ApiContestResponse.FromOldList(database.GetAllContests().ToArray(), dataContext));
3131
}
3232

3333
[ApiV3Endpoint("contests/{id}"), Authentication(false)]

0 commit comments

Comments
 (0)