Skip to content

Commit f6f2588

Browse files
authored
Merge pull request #136 from liammclennan/index-find-returns-index
IndexesResourceGroup.cs Find should return an `IndexEntity`.
2 parents 7ddec19 + 2d480d4 commit f6f2588

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

src/Seq.Api/ResourceGroups/IndexesResourceGroup.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,19 +18,19 @@ internal IndexesResourceGroup(ILoadResourceGroup connection)
1818
: base("Indexes", connection)
1919
{
2020
}
21+
2122
/// <summary>
2223
/// Retrieve the index with the given id; throws if the entity does not exist.
2324
/// </summary>
2425
/// <param name="id">The id of the index.</param>
2526
/// <param name="cancellationToken">A <see cref="CancellationToken"/> allowing the operation to be canceled.</param>
2627
/// <returns>The index.</returns>
27-
public async Task<SignalEntity> FindAsync(string id, CancellationToken cancellationToken = default)
28+
public async Task<IndexEntity> FindAsync(string id, CancellationToken cancellationToken = default)
2829
{
2930
if (id == null) throw new ArgumentNullException(nameof(id));
30-
return await GroupGetAsync<SignalEntity>("Item", new Dictionary<string, object> { { "id", id } }, cancellationToken).ConfigureAwait(false);
31+
return await GroupGetAsync<IndexEntity>("Item", new Dictionary<string, object> { { "id", id } }, cancellationToken).ConfigureAwait(false);
3132
}
32-
33-
33+
3434
/// <summary>
3535
/// Retrieve statistics on all indexes.
3636
/// </summary>

0 commit comments

Comments
 (0)