This commit is contained in:
Felipe
2024-08-02 18:46:17 -05:00
parent e1717f1be7
commit 408744fcc6
7 changed files with 9 additions and 15 deletions
@@ -5,8 +5,7 @@ class FirebaseServiceRepository {
final serviceCollection = FirebaseFirestore.instance.collection('services');
Future<String> createService(ServiceEntity entity) async {
DocumentReference<Map<String, dynamic>> docRef =
await serviceCollection.add(entity.toDocument());
DocumentReference<Map<String, dynamic>> docRef = await serviceCollection.add(entity.toDocument());
return docRef.id;
}