fix(server): truncate embedding tables (#7449)

truncate
This commit is contained in:
Mert
2024-02-27 10:24:23 -05:00
committed by GitHub
parent 9fa2424652
commit fb18129843
6 changed files with 16 additions and 16 deletions
@@ -40,11 +40,11 @@ export class PersonRepository implements IPersonRepository {
}
async deleteAll(): Promise<void> {
await this.personRepository.delete({});
await this.personRepository.clear();
}
async deleteAllFaces(): Promise<void> {
await this.assetFaceRepository.delete({});
await this.assetFaceRepository.query('TRUNCATE TABLE asset_faces CASCADE');
}
getAllFaces(