|
@@ -27,10 +27,8 @@ export class PersonService {
|
|
|
|
|
|
async getAll(authUser: AuthUserDto, dto: PersonSearchDto): Promise<PeopleResponseDto> {
|
|
async getAll(authUser: AuthUserDto, dto: PersonSearchDto): Promise<PeopleResponseDto> {
|
|
const people = await this.repository.getAll(authUser.id, { minimumFaceCount: 1 });
|
|
const people = await this.repository.getAll(authUser.id, { minimumFaceCount: 1 });
|
|
- const named = people.filter((person) => !!person.name);
|
|
|
|
- const unnamed = people.filter((person) => !person.name);
|
|
|
|
|
|
|
|
- const persons: PersonResponseDto[] = [...named, ...unnamed]
|
|
|
|
|
|
+ const persons: PersonResponseDto[] = people
|
|
// with thumbnails
|
|
// with thumbnails
|
|
.filter((person) => !!person.thumbnailPath)
|
|
.filter((person) => !!person.thumbnailPath)
|
|
.map((person) => mapPerson(person));
|
|
.map((person) => mapPerson(person));
|