feat : #14 partage de profil
This commit is contained in:
@@ -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' })
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user