Fixed and refactored reflection.Len

This commit is contained in:
Hein
2025-11-11 17:07:44 +02:00
parent 1db1b924ef
commit f0e26b1c0d
2 changed files with 8 additions and 2 deletions

View File

@@ -523,7 +523,7 @@ func (h *Handler) handleRead(ctx context.Context, w common.ResponseWriter, id st
metadata := &common.Metadata{
Total: int64(total),
Count: int64(common.Len(modelPtr)),
Count: int64(reflection.Len(modelPtr)),
Filtered: int64(total),
Limit: limit,
Offset: offset,