fix: prevent an offline asset from being used as a person feature photo (#21278)

This commit is contained in:
Jason Rasmussen
2025-08-25 22:40:56 -04:00
committed by GitHub
parent d04675fb41
commit 8f1b505ba0
3 changed files with 11 additions and 9 deletions

View File

@@ -197,6 +197,10 @@ export class PersonService extends BaseService {
throw new BadRequestException('Invalid assetId for feature face');
}
if (face.asset.isOffline) {
throw new BadRequestException('An offline asset cannot be used for feature face');
}
faceId = face.id;
}