Skip to content

Commit

Permalink
Invalid casts (#14059)
Browse files Browse the repository at this point in the history
  • Loading branch information
jtkech authored Aug 4, 2023
1 parent 16d9fb3 commit c615b35
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,6 @@ public static class WorkflowStoreExtensions
{
[Obsolete("This method will be removed in a future version, use the method accepting a collection of long ids.", false)]
public static Task<IEnumerable<Workflow>> GetAsync(this IWorkflowStore store, IEnumerable<int> ids) =>
store.GetAsync(ids.Cast<long>());
store.GetAsync(ids.Select(id => Convert.ToInt64(id)));
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,6 @@ public static class WorkflowTypeStoreExtensions
{
[Obsolete("This method will be removed in a future version, use the method accepting a collection of long ids.", false)]
public static Task<IEnumerable<WorkflowType>> GetAsync(this IWorkflowTypeStore store, IEnumerable<int> ids) =>
store.GetAsync(ids.Cast<long>());
store.GetAsync(ids.Select(id => Convert.ToInt64(id)));
}
}

0 comments on commit c615b35

Please sign in to comment.