mirror of
https://github.com/strapi/strapi.git
synced 2025-11-01 18:33:55 +00:00
fix maby?
This commit is contained in:
parent
8e00ced3d2
commit
ec4cb1bfa5
@ -169,7 +169,10 @@ const decorator = (service) => ({
|
||||
|
||||
const wrappedParams = await this.wrapParams(opts, { uid, action: 'findMany' });
|
||||
|
||||
if (kind === 'singleType' && opts[LOCALE_QUERY_FILTER] !== 'all') {
|
||||
if (kind === 'singleType') {
|
||||
if (opts[LOCALE_QUERY_FILTER] === 'all') {
|
||||
return service.findMany.call(this, uid, wrappedParams);
|
||||
}
|
||||
const query = {
|
||||
...transformParamsToQuery(uid, wrappedParams),
|
||||
select: [],
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user