Rename personId to id

This commit is contained in:
Shailesh Pandit 2021-11-27 15:40:29 +05:30
parent 320099df59
commit 52b20c9783
2 changed files with 4 additions and 4 deletions

View file

@ -323,14 +323,14 @@ class MachineLearningService {
.map((f) => allFaces[f])
.filter((f) => f);
const person: Person = {
personId: index,
id: index,
files: faces.map((f) => f.fileId),
};
await mlPeopleStore.setItem(person.personId.toString(), person);
await mlPeopleStore.setItem(person.id.toString(), person);
faces.forEach((face) => {
face.personId = person.personId;
face.personId = person.id;
});
// console.log("Creating person: ", person, faces);
}

View file

@ -129,7 +129,7 @@ export interface Face extends FaceWithEmbedding {
}
export interface Person {
personId: number;
id: number;
name?: string;
files: Array<number>;
}