mirror of
https://github.com/hexastack/hexabot
synced 2025-06-26 18:27:28 +00:00
fix(api): move builtin logic + adapt unit tests
This commit is contained in:
@@ -561,7 +561,7 @@ export abstract class BaseRepository<
|
||||
}
|
||||
|
||||
async deleteMany(criteria: TFilterQuery<T>): Promise<DeleteResult> {
|
||||
return await this.model.deleteMany(criteria);
|
||||
return await this.model.deleteMany({ ...criteria, builtin: { $ne: true } });
|
||||
}
|
||||
|
||||
async preCreateValidate(
|
||||
|
||||
Reference in New Issue
Block a user