fix(api): update criteria type

This commit is contained in:
yassinedorbozgithub
2025-06-12 15:53:47 +01:00
parent b7253c99ec
commit 7a7a70cbf2

View File

@@ -110,7 +110,7 @@ export class NlpService {
* @param entity - The NLP entity to be deleted.
*/
@OnEvent('hook:nlpEntity:preDelete')
async handleEntityDelete(_query: unknown, criteria: TFilterQuery<NlpValue>) {
async handleEntityDelete(_query: unknown, criteria: TFilterQuery<NlpEntity>) {
if (criteria._id) {
await this.nlpValueService.deleteMany({ entity: criteria._id });
await this.nlpSampleEntityService.deleteMany({ entity: criteria._id });