fix: feature face update ignores soft-deleted faces (#31533)

This commit is contained in:
Daniel Dietzler
2026-09-14 09:47:02 -04:00
committed by GitHub
parent 53395d0664
commit ef9718e93d
3 changed files with 16 additions and 0 deletions
@@ -228,4 +228,18 @@ describe(PersonRepository.name, () => {
);
});
});
describe('getForFeatureFaceUpdate', () => {
it('should ignore soft deleted faces', async () => {
const { ctx, sut } = setup();
const { user } = await ctx.newUser();
const { asset } = await ctx.newAsset({ ownerId: user.id });
const { person } = await ctx.newPerson({ ownerId: user.id });
await ctx.newAssetFace({ assetId: asset.id, deletedAt: new Date(), personGroupId: person.personGroupId });
await expect(
sut.getForFeatureFaceUpdate({ personGroupId: person.personGroupId, assetId: asset.id }),
).resolves.toEqual(undefined);
});
});
});