feathers-sequelize icon indicating copy to clipboard operation
feathers-sequelize copied to clipboard

Service .find() method return a wrong type (not paginated)

Open yassinedorbozgithub opened this issue 1 year ago • 0 comments

Steps to reproduce

  • Create a feathers service
  • Implement the find method of a service without adding the field paginated inside the parameters
  • Check the return type of the service

Expected behavior

By default the feathers service return a paginated response if we don't specify the field paginated: false. So the returned type of a find method need to be paginated by default.

Actual behavior

When we use the find method of a service that extends SequelizeService<R, D, SP, PD> the return type is not like expected. We got an union of paginated type and not paginated type

System configuration

Tell us about the applicable parts of your setup.

Module versions: 7.0.3 (latest)

NodeJS version: v18.12.0

Operating System: Ubuntu 22.04.4

Browser Version: v120

React Native Version: N/A

Module Loader: N/A

yassinedorbozgithub avatar Jan 26 '24 12:01 yassinedorbozgithub