feat(server): conditionally run facial recognition nightly (#11080)

* only run nightly if new person

* add tests

* use string instead of date

* update sql

* update tests

* simplify condition
This commit is contained in:
Mert 2024-07-14 18:53:42 -04:00 committed by GitHub
parent 8863bd4e7d
commit 8193416230
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
10 changed files with 107 additions and 5 deletions

View file

@ -64,4 +64,5 @@ export interface IPersonRepository {
getNumberOfPeople(userId: string): Promise<PeopleStatistics>;
reassignFaces(data: UpdateFacesData): Promise<number>;
update(entity: Partial<PersonEntity>): Promise<PersonEntity>;
getLatestFaceDate(): Promise<string | undefined>;
}