fix bug ttp #9

This commit is contained in:
styve Lioumba
2025-11-24 16:33:02 +01:00
parent acd8a4cc07
commit b91908a49b
2 changed files with 14 additions and 13 deletions

View File

@@ -11,13 +11,13 @@ export class PbProfileRepository implements ProfileRepository {
private pb = new PocketBase(environment.baseUrl);
list(): Observable<Profile[]> {
return from(
this.pb.collection('profiles').getFullList<Profile>({
sort: 'profession',
expand: 'utilisateur',
filter: 'utilisateur.verified=true',
})
);
const options = {
sort: 'profession',
expand: 'utilisateur',
filter:
"utilisateur.verified=true && utilisateur.name !='' && profession!='Profession non renseignée' && secteur!='' ",
};
return from(this.pb.collection('profiles').getFullList<Profile>(options));
}
getByUserId(userId: string): Observable<Profile> {