Skip to content

Commit

Permalink
Merge branch 'fix/pointer-of-interface' into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
Jyny committed Sep 30, 2021
2 parents 1854587 + 1802211 commit 77746ae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion wrap.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (

// Paging is wrapper for doing paging easily
func (pgntr Paginator) Paging(tx *gorm.DB, dest interface{}) (*Page, error) {
result := pgntr.GenGormTransaction(tx).Find(&dest)
result := pgntr.GenGormTransaction(tx).Find(dest)
if result.Error != nil {
return nil, fmt.Errorf("paginator.paging : %w", result.Error)
}
Expand Down

0 comments on commit 77746ae

Please sign in to comment.