feat(inventory): add origin field to InventoryItem and update related DTOs and services
This commit is contained in:
@@ -125,11 +125,20 @@ export class ProductsController {
|
||||
return this.aiService.suggestCategory(product.canonicalName ?? product.name, categories);
|
||||
}
|
||||
|
||||
@Roles('admin')
|
||||
@Post()
|
||||
create(@Body() body: CreateProductDto) {
|
||||
return this.productsService.create(body);
|
||||
}
|
||||
|
||||
@Post('pending')
|
||||
createPending(
|
||||
@Body() body: CreateProductDto,
|
||||
@Request() req: { user: { id: number } },
|
||||
) {
|
||||
return this.productsService.createPending(body, req.user.id);
|
||||
}
|
||||
|
||||
@Roles('admin')
|
||||
@Post('merge')
|
||||
merge(@Body() body: MergeProductsDto) {
|
||||
|
||||
Reference in New Issue
Block a user