feat : #14 partage de profil

This commit is contained in:
styve Lioumba
2025-12-04 12:42:06 +01:00
parent 6afb13b2e9
commit 65ecc516c4
37 changed files with 309 additions and 74 deletions

View File

@@ -29,9 +29,9 @@ export class PbProfileRepository implements ProfileRepository {
);
}
getByUserId(userId: string): Observable<Profile> {
getById(userId: string): Observable<Profile> {
return from(
this.pb.collection('profiles').getFirstListItem<Profile>(`utilisateur="${userId}"`)
this.pb.collection('profiles').getOne<Profile>(`${userId}`, { expand: 'utilisateur' })
);
}