WT1.1.2h getProperty fix
This commit is contained in:
@@ -72,10 +72,12 @@ class CustomerApi {
|
||||
Customer customer;
|
||||
try {
|
||||
customer = Customer.fromJson(jsonDecode(responseBody));
|
||||
if (customer.firebaseUid == null) {
|
||||
/* if (customer.firebaseUid == null) {
|
||||
await this.updateFirebaseUid(customer.customerId, Cache().firebaseUid);
|
||||
}
|
||||
} */
|
||||
Cache().userLoggedIn = customer;
|
||||
final List properties = await this.getActualProperties(customer.customerId);
|
||||
this._initProperties(properties);
|
||||
} on FormatException {
|
||||
throw new Exception(responseBody);
|
||||
}
|
||||
@@ -164,6 +166,9 @@ class CustomerApi {
|
||||
final Iterable json = jsonDecode(body);
|
||||
final List<CustomerProperty> properties = json.map((property) => CustomerProperty.fromJson(property)).toList();
|
||||
|
||||
properties.forEach((element) {
|
||||
print("Property " + element.toString());
|
||||
});
|
||||
return properties;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user