WT1.1.2h getProperty fix

This commit is contained in:
bossanyit
2020-11-20 13:31:26 +01:00
parent d984588567
commit 3ce32434bf
16 changed files with 149 additions and 122 deletions
+7 -2
View File
@@ -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;
}