mirror of
https://github.com/strapi/strapi.git
synced 2025-07-24 17:40:18 +00:00
Merge pull request #14787 from strapi/fix/update-delete-mutations-ignore-locale
Fix the findParams argument to be passed correctly
This commit is contained in:
commit
16dda55874
@ -54,7 +54,7 @@ module.exports = ({ strapi }) => {
|
||||
.buildMutationsResolvers({ contentType });
|
||||
|
||||
const findParams = omit(['data', 'files'], transformedArgs);
|
||||
const entity = await strapi.entityService.findMany(uid, { params: findParams });
|
||||
const entity = await strapi.entityService.findMany(uid, findParams);
|
||||
|
||||
// Create or update
|
||||
const value = isNil(entity)
|
||||
@ -84,7 +84,7 @@ module.exports = ({ strapi }) => {
|
||||
.get('content-api')
|
||||
.buildMutationsResolvers({ contentType });
|
||||
|
||||
const entity = await strapi.entityService.findMany(uid, { params: transformedArgs });
|
||||
const entity = await strapi.entityService.findMany(uid, transformedArgs);
|
||||
|
||||
if (!entity) {
|
||||
throw new NotFoundError('Entity not found');
|
||||
|
Loading…
x
Reference in New Issue
Block a user