Skip to content

Commit

Permalink
🐛 Fix(paginate.go): rename method
Browse files Browse the repository at this point in the history
  • Loading branch information
booscaaa committed Nov 10, 2023
1 parent 13a2dc8 commit c82c8d5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion v2/paginate/paginate.go
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ type paginQueryParams struct {
// Option é uma função que configura opções em paginQueryParams
type Option func(*paginQueryParams)

func WithNoOffet(noOffset bool) Option {
func WithNoOffset(noOffset bool) Option {
return func(params *paginQueryParams) {
params.noOffset = noOffset
}
Expand Down
2 changes: 1 addition & 1 deletion v2/paginate/paginate_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ func TestPaginQuery(t *testing.T) {
"nomeCliente": "PARADISO GIOVANELLA TRANSP. LTDA",
}),
WithWhereClause("teste = ?", "tcha"),
WithNoOffet(true),
WithNoOffset(true),
)

if err != nil {
Expand Down

0 comments on commit c82c8d5

Please sign in to comment.