fix: the blog entitiy cascade option
This commit is contained in:
@@ -59,7 +59,7 @@ export class BlogsService {
|
||||
const category = await this.blogCategoriesRepository.findOneBy({ id });
|
||||
if (!category) throw new BadRequestException(BlogMessage.CATEGORY_NOT_FOUND);
|
||||
|
||||
await this.blogCategoriesRepository.softDelete({ id });
|
||||
await this.blogCategoriesRepository.delete({ id });
|
||||
return {
|
||||
message: CommonMessage.DELETED,
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user