chore: remove deprecated endpoint (#13190)

This commit is contained in:
Jason Rasmussen
2024-10-04 15:10:13 -04:00
committed by GitHub
parent 08db817d14
commit 7ee0221c8e
12 changed files with 0 additions and 350 deletions

View File

@@ -234,30 +234,6 @@ export class PersonRepository implements IPersonRepository {
};
}
@GenerateSql({ params: [DummyValue.UUID] })
getAssets(personId: string): Promise<AssetEntity[]> {
return this.assetRepository.find({
where: {
faces: {
personId,
},
isVisible: true,
isArchived: false,
},
relations: {
faces: {
person: true,
},
exifInfo: true,
},
order: {
fileCreatedAt: 'desc',
},
// TODO: remove after either (1) pagination or (2) time bucket is implemented for this query
take: 1000,
});
}
@GenerateSql({ params: [DummyValue.UUID] })
async getNumberOfPeople(userId: string): Promise<PeopleStatistics> {
const items = await this.personRepository