forked from Cutlery/immich
rename
This commit is contained in:
parent
87cbcc02c3
commit
107157b856
@ -118,20 +118,20 @@
|
|||||||
|
|
||||||
if (numberOfChanges > 0) {
|
if (numberOfChanges > 0) {
|
||||||
try {
|
try {
|
||||||
for (const peopleWithFace of peopleWithFaces) {
|
for (const personWithFace of peopleWithFaces) {
|
||||||
const personId = selectedPersonToReassign[peopleWithFace.id]?.id;
|
const personId = selectedPersonToReassign[personWithFace.id]?.id;
|
||||||
|
|
||||||
if (personId) {
|
if (personId) {
|
||||||
await reassignFacesById({
|
await reassignFacesById({
|
||||||
id: personId,
|
id: personId,
|
||||||
faceDto: { id: peopleWithFace.id },
|
faceDto: { id: personWithFace.id },
|
||||||
});
|
});
|
||||||
} else if (selectedPersonToCreate[peopleWithFace.id]) {
|
} else if (selectedPersonToCreate[personWithFace.id]) {
|
||||||
const data = await createPerson();
|
const data = await createPerson();
|
||||||
peopleToCreate.push(data.id);
|
peopleToCreate.push(data.id);
|
||||||
await reassignFacesById({
|
await reassignFacesById({
|
||||||
id: data.id,
|
id: data.id,
|
||||||
faceDto: { id: peopleWithFace.id },
|
faceDto: { id: personWithFace.id },
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user