Skip to content

Commit

Permalink
fix(Core.Api.Client): fixed partition query parameters format
Browse files Browse the repository at this point in the history
Closes #64
  • Loading branch information
JBBianchi committed Sep 25, 2024
1 parent 654ef2b commit 23d60f3
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,8 @@ public virtual async Task<StreamMetadata> GetStreamMetadataAsync(CancellationTok
var queryParameters = new Dictionary<string, object>() { { $"{nameof(options.Direction)}".ToCamelCase(), options.Direction.ToString() } };
if (options.Partition != null)
{
queryParameters.Add($"{nameof(options.Partition)}.{nameof(options.Partition.Type)}".ToCamelCase(), options.Partition.Type.ToString());
queryParameters.Add($"{nameof(options.Partition)}.{nameof(options.Partition.Id)}".ToCamelCase(), options.Partition.Id);
queryParameters.Add($"{nameof(options.Partition).ToCamelCase()}.{nameof(options.Partition.Type).ToCamelCase()}", options.Partition.Type.ToString());
queryParameters.Add($"{nameof(options.Partition).ToCamelCase()}.{nameof(options.Partition.Id).ToCamelCase()}", options.Partition.Id);
}
if (options.Offset.HasValue) queryParameters.Add(nameof(options.Offset).ToCamelCase(), options.Offset.Value);
queryParameters.Add(nameof(options.Length).ToCamelCase(), options.Length);
Expand Down

0 comments on commit 23d60f3

Please sign in to comment.