fix(产品服务): 修复查询口味字典项的条件错误

This commit is contained in:
tikkhun 2025-11-28 10:29:21 +08:00
parent cd72783291
commit fb8509b5f5
1 changed files with 1 additions and 1 deletions

View File

@ -487,7 +487,7 @@ export class ProductService {
if (!flavorsDict) { if (!flavorsDict) {
return []; return [];
} }
return this.dictItemModel.find({ where: { id: flavorsDict.id } }); return this.dictItemModel.find({ where: { dict: { id: flavorsDict.id } } });
} }
async createFlavors(createFlavorsDTO: CreateFlavorsDTO): Promise<DictItem> { async createFlavors(createFlavorsDTO: CreateFlavorsDTO): Promise<DictItem> {