update main model
This commit is contained in:
@@ -90,7 +90,7 @@ class CustomerModel extends BaseModel {
|
||||
}
|
||||
}
|
||||
|
||||
Future<User> getUser(String id) async {
|
||||
Future<User> getUser(String? id) async {
|
||||
String path = "/$user_collection";
|
||||
var snap = await Firestore.instance.collection(path).document(id).get();
|
||||
return User.fromMap(snap.data, snap.documentID);
|
||||
|
||||
Reference in New Issue
Block a user