Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions src/Gemstone.Web/APIController/ReadOnlyModelController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -337,12 +337,12 @@ public virtual async Task<IActionResult> Search([FromBody] SearchPost<T> postDat

if (ParentKey != string.Empty && parentID is not null)
{
filters.Append(new RecordFilter<T>()
filters = filters.Append(new RecordFilter<T>()
{
FieldName = ParentKey,
Operator = "=",
SearchParameter = parentID
});
}).ToArray();
}

IAsyncEnumerable<T> result = tableOperations.QueryRecordsAsync(HttpContext.User, postData.OrderBy, postData.Ascending, page, PageSize, cancellationToken, filters);
Expand All @@ -367,12 +367,12 @@ public virtual async Task<IActionResult> GetPageInfo([FromBody] SearchPost<T> po

if (ParentKey != string.Empty && parentID is not null)
{
filters.Append(new RecordFilter<T>()
filters = filters.Append(new RecordFilter<T>()
{
FieldName = ParentKey,
Operator = "=",
SearchParameter = parentID
});
}).ToArray();
}

int recordCount = await tableOperations.QueryRecordCountAsync(HttpContext.User, cancellationToken, filters).ConfigureAwait(false);
Expand Down Expand Up @@ -401,12 +401,12 @@ public virtual async Task<IActionResult> GetPageInfo(string? parentID, Cancellat

if (ParentKey != string.Empty && parentID is not null)
{
filters.Append(new RecordFilter<T>()
filters = filters.Append(new RecordFilter<T>()
{
FieldName = ParentKey,
Operator = "=",
SearchParameter = parentID
});
}).ToArray();
}

int recordCount = await tableOperations.QueryRecordCountAsync(HttpContext.User, cancellationToken, filters).ConfigureAwait(false);
Expand Down