Skip to content

Commit

Permalink
bugfix wrong cast leading to crash
Browse files Browse the repository at this point in the history
  • Loading branch information
olibanjoli committed Sep 26, 2018
1 parent 81a397f commit cfb7232
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ public PagedResult<JobRun> GetJobRunsByState(JobRunStates state, int page = 1, i

public PagedResult<JobRun> GetJobRunsByStates(JobRunStates[] states, int page = 1, int pageSize = 50, string jobTypeFilter = null, string jobUniqueNameFilter = null, string query = null, params string[] sort)
{
var statesCasted = states.Cast<ComponentModel.JobStorage.Model.JobRunStates>().ToArray();
var statesCasted = states.Select(s => (ComponentModel.JobStorage.Model.JobRunStates)s).ToArray();

var jobruns = this.repository.GetJobRunsByStates(statesCasted, page, pageSize, jobTypeFilter, jobUniqueNameFilter, query, sort);

Expand Down

0 comments on commit cfb7232

Please sign in to comment.