From 2d480d4991622948325c3f60265f94ce8e38a28d Mon Sep 17 00:00:00 2001 From: Liam McLennan Date: Mon, 22 Apr 2024 14:39:11 +1000 Subject: [PATCH] IndexesResourceGroup.cs Find should return an `IndexEntity`. --- src/Seq.Api/ResourceGroups/IndexesResourceGroup.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Seq.Api/ResourceGroups/IndexesResourceGroup.cs b/src/Seq.Api/ResourceGroups/IndexesResourceGroup.cs index 5c8038a..5ee3f74 100644 --- a/src/Seq.Api/ResourceGroups/IndexesResourceGroup.cs +++ b/src/Seq.Api/ResourceGroups/IndexesResourceGroup.cs @@ -18,19 +18,19 @@ internal IndexesResourceGroup(ILoadResourceGroup connection) : base("Indexes", connection) { } + /// /// Retrieve the index with the given id; throws if the entity does not exist. /// /// The id of the index. /// A allowing the operation to be canceled. /// The index. - public async Task FindAsync(string id, CancellationToken cancellationToken = default) + public async Task FindAsync(string id, CancellationToken cancellationToken = default) { if (id == null) throw new ArgumentNullException(nameof(id)); - return await GroupGetAsync("Item", new Dictionary { { "id", id } }, cancellationToken).ConfigureAwait(false); + return await GroupGetAsync("Item", new Dictionary { { "id", id } }, cancellationToken).ConfigureAwait(false); } - - + /// /// Retrieve statistics on all indexes. ///