moleculerjs / database

Advanced Database Access Service for Moleculer microservices framework
MIT License
32 stars 15 forks source link

Default scope removed when scope query param provided though REST API #13

Closed vimalraj-a closed 2 years ago

vimalraj-a commented 2 years ago

When user sends scope query param with valid scope name, default scope removed from final scope list.

Example: Our task service has 3 scopes

  1. tenant
  2. onlyActive
  3. onlyMyTask

Default scope:

  1. tenant
  2. onlyActive

GET /list?scope=onlyMyTask

Actual scope applied to query onlyMyTask

Expected scope to be applied

  1. tenant
  2. onlyActive
  3. onlyMyTask