traer solo los activos aceptados y pendientes
This commit is contained in:
@@ -31,6 +31,7 @@ class FirebaseServiceRepository {
|
||||
Stream<List<ServiceEntity>> getServicesForUser(String userId) {
|
||||
return serviceCollection
|
||||
.where('user_id', isEqualTo: userId)
|
||||
.where('status', whereIn: [0, 1, 2])
|
||||
.snapshots()
|
||||
.map((querySnapshot) => querySnapshot.docs
|
||||
.map((doc) => ServiceEntity.fromDocument(doc.data()))
|
||||
|
||||
Reference in New Issue
Block a user