project et profile => clean archi et test vert
This commit is contained in:
@@ -14,7 +14,7 @@ export class PbProfileRepository implements ProfileRepository {
|
||||
return from(this.pb.collection('profiles').getFullList<Profile>({ sort: 'profession' }));
|
||||
}
|
||||
|
||||
getByUserId(userId: string): Observable<Profile | null> {
|
||||
getByUserId(userId: string): Observable<Profile> {
|
||||
return from(
|
||||
this.pb.collection('profiles').getFirstListItem<Profile>(`utilisateur="${userId}"`)
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user