Hi everyone I was trying to use this plugin but it has some problems and has not been updated. I found that when the mutate or mutateAsync function is called to update the custom fields thumbnail and images it never enters the update function of the service: https://github.com/SGFGOV/medusa-plugin-category-images/blob/4d7604d7b929165f04eb9b9fb2548154af4aeb8f/src/services/product-category.ts#L41
#medusa-plugin-category-images - not update
6 messages · Page 1 of 1 (latest)
The error is: error: property thumbnail should not exist
but AdminPostProductCategoriesCategoryReq is extended
import { registerOverriddenValidators } from '@medusajs/medusa';
import {IsArray, IsOptional, IsString} from 'class-validator';
import { AdminPostProductCategoriesCategoryReq as MedusaAdminPostProductCategoriesCategoryReq } from '@medusajs/medusa/dist/api/routes/admin/product-categories'
class AdminPostProductsProductCategoriesCategoryReq extends MedusaAdminPostProductCategoriesCategoryReq {
@IsArray()
@IsOptional()
images?: string[];
@IsString()
@IsOptional()
thumbnail?: string;
}
registerOverriddenValidators(AdminPostProductsProductCategoriesCategoryReq);```
Anyone?
Hey you should try to contact the developer behind that plugin or create an issue in their Github I think it’s a good option