Skip to content

Commit

Permalink
Bug fix current page on PageResult
Browse files Browse the repository at this point in the history
  • Loading branch information
Gabriel Cataldo committed Jan 30, 2024
1 parent 96bb670 commit 509ee99
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ MongoDB Template
<!--suppress ALL -->
<img align="right" src="gopher-mongo.png" alt="">

[![Project status](https://img.shields.io/badge/version-v1.1.6-vividgreen.svg)](https://github.com/GabrielHCataldo/go-mongo-template/releases/tag/v1.1.6)
[![Project status](https://img.shields.io/badge/version-v1.1.7-vividgreen.svg)](https://github.com/GabrielHCataldo/go-mongo-template/releases/tag/v1.1.7)
[![Go Report Card](https://goreportcard.com/badge/github.com/GabrielHCataldo/go-mongo-template)](https://goreportcard.com/report/github.com/GabrielHCataldo/go-mongo-template)
[![Coverage Status](https://coveralls.io/repos/GabrielHCataldo/go-mongo-template/badge.svg?branch=main&service=github)](https://coveralls.io/github/GabrielHCataldo/go-mongo?branch=main)
[![Open Source Helpers](https://www.codetriage.com/gabrielhcataldo/go-mongo-template/badges/users.svg)](https://www.codetriage.com/gabrielhcataldo/go-mongo)
Expand Down
2 changes: 1 addition & 1 deletion mongo/page.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ func newPageResult(pageInput PageInput, result any, countTotal int64) *PageResul
var content pageContent
_ = helper.ConvertToDest(result, &content)
return &PageResult{
Page: 0,
Page: pageInput.Page,
PageSize: pageInput.PageSize,
PageTotal: int64(pageTotal),
TotalElements: countTotal,
Expand Down

0 comments on commit 509ee99

Please sign in to comment.