mirror of
https://github.com/immich-app/immich.git
synced 2025-12-27 09:14:55 +03:00
fix(server): duplicate faces, face insert query failing (#13294)
fix duplicate faces, query failing
This commit is contained in:
@@ -325,7 +325,7 @@ export class PersonService extends BaseService {
|
||||
|
||||
if (match && !mlFaceIds.delete(match.id)) {
|
||||
embeddings.push({ faceId: match.id, embedding });
|
||||
} else {
|
||||
} else if (!match) {
|
||||
const faceId = this.cryptoRepository.randomUUID();
|
||||
facesToAdd.push({
|
||||
id: faceId,
|
||||
|
||||
Reference in New Issue
Block a user