mirror of
https://github.com/strapi/strapi.git
synced 2025-11-07 05:38:13 +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' });
|
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 = {
|
const query = {
|
||||||
...transformParamsToQuery(uid, wrappedParams),
|
...transformParamsToQuery(uid, wrappedParams),
|
||||||
select: [],
|
select: [],
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user