refreshRelations static method

Implementation

static Future<MemberSubscriptionModel> refreshRelations(
    MemberSubscriptionModel model) async {
  AppModel? appHolder;
  if (model.app != null) {
    try {
      await appRepository()!.get(model.app!.documentID).then((val) {
        appHolder = val;
      }).catchError((error) {});
    } catch (_) {}
  }

  return model.copyWith(
    app: appHolder,
  );
}