feat(server): refresh face detection (#12335)

* refresh faces

handle non-ml faces

* fix metadata face handling

* updated tests

* added todo comment
This commit is contained in:
Mert
2024-10-03 21:58:28 -04:00
committed by GitHub
parent 9edc9d6151
commit 2c87683fd4
21 changed files with 409 additions and 152 deletions

View File

@@ -92,8 +92,9 @@ export class AssetIdsDto {
}
export enum AssetJobName {
REGENERATE_THUMBNAIL = 'regenerate-thumbnail',
REFRESH_FACES = 'refresh-faces',
REFRESH_METADATA = 'refresh-metadata',
REGENERATE_THUMBNAIL = 'regenerate-thumbnail',
TRANSCODE_VIDEO = 'transcode-video',
}

View File

@@ -18,7 +18,7 @@ export class JobCommandDto {
command!: JobCommand;
@ValidateBoolean({ optional: true })
force!: boolean;
force?: boolean; // TODO: this uses undefined as a third state, which should be refactored to be more explicit
}
export class JobCreateDto {