update food
This commit is contained in:
@@ -36,7 +36,7 @@ export class FoodRepository extends EntityRepository<Food> {
|
||||
|
||||
if (search) {
|
||||
const pattern = `%${search}%`;
|
||||
where.$or = [{ title: { $ilike: pattern } }, { content: { $ilike: pattern } }];
|
||||
where.$or = [{ title: { $ilike: pattern } }, { desc: { $ilike: pattern } }];
|
||||
}
|
||||
|
||||
if (categoryId) {
|
||||
|
||||
Reference in New Issue
Block a user