lf
This commit is contained in:
@@ -424,8 +424,6 @@ async function getAllPeople(limit: number = undefined) {
|
||||
await syncPersons();
|
||||
const people = await persons();
|
||||
log.debug(() => ["people", { people }]);
|
||||
|
||||
return [];
|
||||
}
|
||||
|
||||
let people: Array<SearchPerson> = []; // await mlIDbStorage.getAllPeople();
|
||||
|
||||
@@ -341,7 +341,16 @@ export const wipCluster = async () => {
|
||||
|
||||
const result: SearchPerson[] = [];
|
||||
for (const person of people) {
|
||||
const avatarFaceID = person.avatarFaceID;
|
||||
let avatarFaceID = person.avatarFaceID;
|
||||
// TODO-Cluster
|
||||
// Temp
|
||||
if (!avatarFaceID) {
|
||||
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
||||
avatarFaceID = person.clusterIDs
|
||||
.map((id) => clusterByID.get(id))
|
||||
.flatMap((cluster) => cluster?.faceIDs ?? [])[0]!;
|
||||
}
|
||||
person.clusterIDs;
|
||||
const avatarFaceFileID = fileIDFromFaceID(avatarFaceID);
|
||||
const avatarFaceFile = localFilesByID.get(avatarFaceFileID ?? 0);
|
||||
if (!avatarFaceFileID || !avatarFaceFile) {
|
||||
|
||||
Reference in New Issue
Block a user