update: add blog slug to the dto

This commit is contained in:
mahyargdz
2025-04-15 12:02:17 +03:30
parent 167cb15e32
commit a5976a3377
5 changed files with 17 additions and 4 deletions
@@ -39,7 +39,7 @@ export class BlogCategoriesRepository extends Repository<BlogCategory> {
query.andWhere("blogCategory.isActive = :isActive", { isActive: queryDto.isActive });
}
query.skip(skip).take(limit).orderBy({ createdAt: "DESC" });
query.skip(skip).take(limit).orderBy("blogCategory.createdAt", "DESC");
return query.getManyAndCount();
}