mirror of
https://github.com/hexastack/hexabot
synced 2025-06-26 18:27:28 +00:00
fix(api): update criteria type
This commit is contained in:
@@ -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 });
|
||||
|
||||
Reference in New Issue
Block a user