Rename personId to id
This commit is contained in:
parent
320099df59
commit
52b20c9783
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -129,7 +129,7 @@ export interface Face extends FaceWithEmbedding {
|
|||
}
|
||||
|
||||
export interface Person {
|
||||
personId: number;
|
||||
id: number;
|
||||
name?: string;
|
||||
files: Array<number>;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue