update: add blog slug to the dto
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user