fix maby?

This commit is contained in:
Boegie19 2023-04-25 13:46:27 +02:00
parent 8e00ced3d2
commit ec4cb1bfa5

View File

@ -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: [],