mirror of
https://github.com/immich-app/immich
synced 2025-11-14 17:36:12 +00:00
refactor(server): merge facial-recognition and person (#4237)
* move facial recognition service into person service * merge face repository and person repository * fix imports
This commit is contained in:
parent
c3d6d69262
commit
0a22e64799
22 changed files with 556 additions and 661 deletions
|
|
@ -1,11 +1,4 @@
|
|||
import {
|
||||
AssetResponseDto,
|
||||
IAssetRepository,
|
||||
IFaceRepository,
|
||||
IPersonRepository,
|
||||
LoginResponseDto,
|
||||
TimeBucketSize,
|
||||
} from '@app/domain';
|
||||
import { AssetResponseDto, IAssetRepository, IPersonRepository, LoginResponseDto, TimeBucketSize } from '@app/domain';
|
||||
import { AppModule, AssetController } from '@app/immich';
|
||||
import { AssetEntity, AssetType } from '@app/infra/entities';
|
||||
import { INestApplication } from '@nestjs/common';
|
||||
|
|
@ -254,8 +247,7 @@ describe(`${AssetController.name} (e2e)`, () => {
|
|||
const personRepository = app.get<IPersonRepository>(IPersonRepository);
|
||||
const person = await personRepository.create({ ownerId: asset1.ownerId, name: 'Test Person' });
|
||||
|
||||
const faceRepository = app.get<IFaceRepository>(IFaceRepository);
|
||||
await faceRepository.create({ assetId: asset1.id, personId: person.id });
|
||||
await personRepository.createFace({ assetId: asset1.id, personId: person.id });
|
||||
|
||||
const { status, body } = await request(server)
|
||||
.put(`/asset/${asset1.id}`)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue