Skip to content

Commit 857b8a9

Browse files
Maurits MoeysMaurits Moeys
Maurits Moeys
authored and
Maurits Moeys
committed
fix: total records in meta
1 parent c177659 commit 857b8a9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/JsonApiDotNetCore/Builders/DocumentBuilder.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ private Dictionary<string, object> GetMeta(IIdentifiable entity)
9393
{
9494
var builder = _jsonApiContext.MetaBuilder;
9595
if (_jsonApiContext.Options.IncludeTotalRecordCount && _pageManager.TotalRecords != null)
96-
builder.Add("total-records", _jsonApiContext.PageManager.TotalRecords);
96+
builder.Add("total-records", _pageManager.TotalRecords);
9797

9898
if (_requestMeta != null)
9999
builder.Add(_requestMeta.GetMeta());

0 commit comments

Comments
 (0)