calendario profesional

This commit is contained in:
Felipe
2024-05-23 21:41:49 -05:00
parent b419e24b90
commit 5db51bc86a
9 changed files with 389 additions and 139 deletions
@@ -41,7 +41,7 @@ class FirebaseServiceRepository {
String professionalId) {
return serviceCollection
.where('professional_id', isEqualTo: professionalId)
.where('status', whereIn: [0, 1, 2, 3])
.where('status', whereIn: [1, 2, 3])
.snapshots()
.map((querySnapshot) => querySnapshot.docs
.map((doc) => ServiceEntity.fromDocument(doc.data(), doc.id))
@@ -52,7 +52,7 @@ class FirebaseServiceRepository {
String professionalId) async {
QuerySnapshot<Map<String, dynamic>> query = await serviceCollection
.where('professional_id', isEqualTo: professionalId)
.where('status', whereIn: [0, 1, 2, 3]).get();
.where('status', whereIn: [0, 1, 2, 3, 6]).get();
return query.docs
.map((doc) => ServiceEntity.fromDocument(doc.data(), doc.id))