mirror of
				https://github.com/strapi/strapi.git
				synced 2025-10-31 01:47:13 +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 }); |           .buildMutationsResolvers({ contentType }); | ||||||
| 
 | 
 | ||||||
|         const findParams = omit(['data', 'files'], transformedArgs); |         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
 |         // Create or update
 | ||||||
|         const value = isNil(entity) |         const value = isNil(entity) | ||||||
| @ -84,7 +84,7 @@ module.exports = ({ strapi }) => { | |||||||
|           .get('content-api') |           .get('content-api') | ||||||
|           .buildMutationsResolvers({ contentType }); |           .buildMutationsResolvers({ contentType }); | ||||||
| 
 | 
 | ||||||
|         const entity = await strapi.entityService.findMany(uid, { params: transformedArgs }); |         const entity = await strapi.entityService.findMany(uid, transformedArgs); | ||||||
| 
 | 
 | ||||||
|         if (!entity) { |         if (!entity) { | ||||||
|           throw new NotFoundError('Entity not found'); |           throw new NotFoundError('Entity not found'); | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Christian
						Christian