mirror of
https://github.com/hexastack/hexabot
synced 2025-05-05 13:24:37 +00:00
fix: label instead of id
This commit is contained in:
parent
a1dd6f5ee5
commit
85d50f6fac
@ -65,8 +65,9 @@ export class CategoryRepository extends BaseRepository<
|
||||
category: id,
|
||||
});
|
||||
if (associatedBlocks) {
|
||||
const category = await this.findOne({ _id: id });
|
||||
throw new ForbiddenException(
|
||||
`Category ${id} has blocks associated with it`,
|
||||
`Category ${category?.label || id} has blocks associated with it`,
|
||||
);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user