puntaje pro
This commit is contained in:
@@ -13,7 +13,7 @@ class EventoService {
|
||||
) async {
|
||||
try {
|
||||
await FirebaseFirestore.instance.collection('services').add({
|
||||
'profesional_id': uid,
|
||||
'user_id': uid,
|
||||
'title': title,
|
||||
'description': description,
|
||||
'day': day,
|
||||
@@ -34,7 +34,7 @@ Future<List<Event>> getByProId(String day) async {
|
||||
try {
|
||||
var snapshot = await FirebaseFirestore.instance
|
||||
.collection('services')
|
||||
.where('profesional_id', isEqualTo: uid)
|
||||
.where('user_id', isEqualTo: uid)
|
||||
.where('day', isEqualTo: day.toString())
|
||||
.get();
|
||||
|
||||
@@ -56,7 +56,7 @@ class Event {
|
||||
String? day;
|
||||
String? range1Hour1;
|
||||
String? range1Hour2;
|
||||
String? profesionalId;
|
||||
String? userId;
|
||||
|
||||
Event({
|
||||
this.title,
|
||||
@@ -64,7 +64,7 @@ class Event {
|
||||
this.day,
|
||||
this.range1Hour1,
|
||||
this.range1Hour2,
|
||||
this.profesionalId,
|
||||
this.userId,
|
||||
});
|
||||
|
||||
factory Event.fromJson(Map<String, dynamic> json) {
|
||||
@@ -74,7 +74,7 @@ class Event {
|
||||
day: json['day'],
|
||||
range1Hour1: json['range1Hour1'],
|
||||
range1Hour2: json['range1Hour2'],
|
||||
profesionalId: json['profesional_id'],
|
||||
userId: json['user_id'],
|
||||
);
|
||||
}
|
||||
|
||||
@@ -82,7 +82,7 @@ class Event {
|
||||
try {
|
||||
var snapshot = await FirebaseFirestore.instance
|
||||
.collection('services')
|
||||
.where('profesional_id', isEqualTo: uid)
|
||||
.where('user_id', isEqualTo: uid)
|
||||
.get();
|
||||
|
||||
List<Event> eventos = [];
|
||||
|
||||
Reference in New Issue
Block a user