update: change user discount route

This commit is contained in:
mahyargdz
2025-04-23 15:08:48 +03:30
parent d69755a690
commit b04d3183b7
4 changed files with 4 additions and 4 deletions
@@ -29,7 +29,7 @@ export class BlogCategoriesRepository extends Repository<BlogCategory> {
async getCategories(queryDto: CategoryListSearchQueryDto) {
const { limit, skip } = PaginationUtils(queryDto);
const query = this.createQueryBuilder("blogCategory").where("blogCategory.deletedAt IS NULL");
const query = this.createQueryBuilder("blogCategory");
if (queryDto.q) {
query.andWhere("blogCategory.title ILIKE :q OR blogCategory.slug ILIKE :q", { q: `%${queryDto.q}%` });