diff --git a/server/src/services/Items/ItemsService.ts b/server/src/services/Items/ItemsService.ts index bec041acd..145d367a0 100644 --- a/server/src/services/Items/ItemsService.ts +++ b/server/src/services/Items/ItemsService.ts @@ -335,6 +335,9 @@ export default class ItemsService implements IItemsService { // Validates the given item existance on the storage. const oldItem = await this.getItemOrThrowError(tenantId, itemId); + // Validate whether the given item name already exists on the storage. + await this.validateItemNameUniquiness(tenantId, itemDTO.name, itemId); + // Validate the item category existance on the storage, if (itemDTO.categoryId) { await this.validateItemCategoryExistance(tenantId, itemDTO.categoryId);