Skip to content

Commit

Permalink
Merge pull request #65 from neuroglia-io/fix-64-partition-filtering
Browse files Browse the repository at this point in the history
Fixed partition query parameters format in API client
  • Loading branch information
cdavernas authored Sep 26, 2024
2 parents 654ef2b + 23d60f3 commit dc5acf2
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 dc5acf2

Please sign in to comment.