Refactor logging in IcaRecipeParser and QuickImportService to use NestJS Logger
- Updated IcaRecipeParser to replace console.log statements with Logger for better logging practices. - Enhanced QuickImportService with Logger for consistent logging and error handling. - Changed quantity validation in CreateRecipeIngredientDto and CreateRecipeDto to allow zero. - Removed CanonicalNameForm and NameForm components from the frontend. - Updated EditProductForm to use a select dropdown for categories instead of a text input. - Added validation for product name, canonical name, and category length in product update action. - Refactored unit options into a separate file for better reusability across components. - Removed unused API fetching functions and inventory types to clean up the codebase.
This commit is contained in:
@@ -5,7 +5,7 @@ export class CreateRecipeIngredientDto {
|
||||
productId!: number;
|
||||
|
||||
@IsNumber()
|
||||
@Min(0.01)
|
||||
@Min(0)
|
||||
quantity!: number;
|
||||
|
||||
@IsString()
|
||||
|
||||
@@ -15,7 +15,7 @@ class CreateRecipeIngredientDto {
|
||||
productId!: number;
|
||||
|
||||
@IsNumber()
|
||||
@Min(0.01)
|
||||
@Min(0)
|
||||
quantity!: number;
|
||||
|
||||
@IsString()
|
||||
|
||||
Reference in New Issue
Block a user