Files
trouvetonprofile/src/app/application/profiles/update-coordinate-profile.usecase.ts
styve Lioumba b90e78e1b7
All checks were successful
Build Check / build (push) Successful in 3m8s
Build Check / build (pull_request) Successful in 3m19s
refacto : restructuration du projet
2025-12-23 09:06:41 +01:00

12 lines
448 B
TypeScript

import { ProfileRepository } from '@app/domain/profiles/profile.repository';
import { Profile } from '@app/domain/profiles/profile.model';
import { Observable } from 'rxjs';
export class UpdateCoordinateProfileUseCase {
constructor(private readonly repo: ProfileRepository) {}
execute(profileId: string, latitude: number, longitude: number): Observable<Profile> {
return this.repo.updateCoordinates(profileId, latitude, longitude);
}
}