Skip to content

Commit

Permalink
feat(server): enable original key filter (#1285)
Browse files Browse the repository at this point in the history
Co-authored-by: tomokazu tantaka <t.tantaka@eukarya.io>
  • Loading branch information
hexaforce and hexaforce authored Nov 27, 2024
1 parent 90ef02f commit 58c184f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion server/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ require (
github.com/paulmach/go.geojson v1.4.0
github.com/pkg/errors v0.9.1
github.com/ravilushqa/otelgqlgen v0.15.0
github.com/reearth/reearthx v0.0.0-20241120060035-e4cc7e5e2643
github.com/reearth/reearthx v0.0.0-20241127093551-4fcdd23fa824
github.com/samber/lo v1.39.0
github.com/spf13/afero v1.11.0
github.com/square/mongo-lock v0.0.0-20201208161834-4db518ed7fb2
Expand Down
4 changes: 2 additions & 2 deletions server/go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -509,8 +509,8 @@ github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZN
github.com/prometheus/client_model v0.0.0-20190812154241-14fe0d1b01d4/go.mod h1:xMI15A0UPsDsEKsMN9yxemIoYk6Tm2C1GtYGdfGttqA=
github.com/ravilushqa/otelgqlgen v0.15.0 h1:U85nrlweMXTGaMChUViYM39/MXBZVeVVlpuHq+6eECQ=
github.com/ravilushqa/otelgqlgen v0.15.0/go.mod h1:o+1Eju0VySmgq2BP8Vupz2YrN21Bj7D7imBqu3m2uB8=
github.com/reearth/reearthx v0.0.0-20241120060035-e4cc7e5e2643 h1:wv28cqjc49af4+EU7IdkrxoVuqn9r5WHq5jJYdtjC3A=
github.com/reearth/reearthx v0.0.0-20241120060035-e4cc7e5e2643/go.mod h1:/ByvE9o0WANHL2nhOyZjOXWwY8cCgze0OmwyNzxcYoA=
github.com/reearth/reearthx v0.0.0-20241127093551-4fcdd23fa824 h1:Zy0dk/fXMIhJBKh5xBbFRyxDbw4PWU4ek0eEnH00GJg=
github.com/reearth/reearthx v0.0.0-20241127093551-4fcdd23fa824/go.mod h1:/ByvE9o0WANHL2nhOyZjOXWwY8cCgze0OmwyNzxcYoA=
github.com/robertkrimen/godocdown v0.0.0-20130622164427-0bfa04905481/go.mod h1:C9WhFzY47SzYBIvzFqSvHIR6ROgDo4TtdTuRaOMjF/s=
github.com/rogpeppe/fastuuid v1.2.0/go.mod h1:jVj6XXZzXRy/MSR5jhDC/2q6DgLz+nrA6LYCDYWNEvQ=
github.com/rogpeppe/go-internal v1.1.0/go.mod h1:M8bDsm7K2OlrFYOpmOWEs/qY81heoFRclV5y23lUDJ4=
Expand Down
2 changes: 1 addition & 1 deletion server/internal/infrastructure/mongo/project.go
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ func (r *Project) paginate(ctx context.Context, filter any, sort *project.SortTy
findOptions := options.Find().SetCollation(&collation)

c := mongodoc.NewProjectConsumer(r.f.Readable)
pageInfo, err := r.client.Paginate(ctx, filter, usort, pagination, c, findOptions)
pageInfo, err := r.client.PaginateProject(ctx, filter, usort, pagination, c, findOptions)
if err != nil {
return nil, nil, rerror.ErrInternalByWithContext(ctx, err)
}
Expand Down

0 comments on commit 58c184f

Please sign in to comment.