user module
This commit is contained in:
@@ -73,14 +73,14 @@ export class productService {
|
||||
|
||||
// async update( id: string, dto: Partial<CreateproductDto>): Promise<Product> {
|
||||
// const { categoryId, dailyStock, ...rest } = dto;
|
||||
// const product = await this.productRepository.findOne({ id, restaurant: { id: restId } }, { populate: ['restaurant'] });
|
||||
// const product = await this.productRepository.findOne({ id, restaurant: { id: } }, { populate: ['restaurant'] });
|
||||
// if (!product) {
|
||||
// throw new NotFoundException(productMessage.NOT_FOUND);
|
||||
// }
|
||||
|
||||
// // attach new categories if provided (adds, does not attempt to preserve/remove existing ones)
|
||||
// if (categoryId) {
|
||||
// const category = await this.categoryRepository.findOne({ id: categoryId, restaurant: { id: restId } });
|
||||
// const category = await this.categoryRepository.findOne({ id: categoryId, restaurant: { id: } });
|
||||
|
||||
// if (!category) {
|
||||
// throw new NotFoundException(CategoryMessage.NOT_FOUND);
|
||||
|
||||
Reference in New Issue
Block a user