chore(server): set relations for getByIds (#4855)

This commit is contained in:
Mert
2023-11-05 21:15:12 -05:00
committed by GitHub
parent a0743d8b7d
commit 9e7a32804b
3 changed files with 17 additions and 7 deletions
+7 -1
View File
@@ -216,7 +216,13 @@ export class PersonService {
return true;
}
const [asset] = await this.assetRepository.getByIds([id]);
const relations = {
exifInfo: true,
faces: {
person: true,
},
};
const [asset] = await this.assetRepository.getByIds([id], relations);
if (!asset || !asset.resizePath || asset.faces?.length > 0) {
return false;
}