Rename personId to id
This commit is contained in:
parent
320099df59
commit
52b20c9783
|
@ -323,14 +323,14 @@ class MachineLearningService {
|
||||||
.map((f) => allFaces[f])
|
.map((f) => allFaces[f])
|
||||||
.filter((f) => f);
|
.filter((f) => f);
|
||||||
const person: Person = {
|
const person: Person = {
|
||||||
personId: index,
|
id: index,
|
||||||
files: faces.map((f) => f.fileId),
|
files: faces.map((f) => f.fileId),
|
||||||
};
|
};
|
||||||
|
|
||||||
await mlPeopleStore.setItem(person.personId.toString(), person);
|
await mlPeopleStore.setItem(person.id.toString(), person);
|
||||||
|
|
||||||
faces.forEach((face) => {
|
faces.forEach((face) => {
|
||||||
face.personId = person.personId;
|
face.personId = person.id;
|
||||||
});
|
});
|
||||||
// console.log("Creating person: ", person, faces);
|
// console.log("Creating person: ", person, faces);
|
||||||
}
|
}
|
||||||
|
|
|
@ -129,7 +129,7 @@ export interface Face extends FaceWithEmbedding {
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface Person {
|
export interface Person {
|
||||||
personId: number;
|
id: number;
|
||||||
name?: string;
|
name?: string;
|
||||||
files: Array<number>;
|
files: Array<number>;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue