fix(产品服务): 修复查询口味字典项的条件错误
This commit is contained in:
parent
cd72783291
commit
fb8509b5f5
|
|
@ -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> {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue