refreshRelations static method

Future<ProfileModel> refreshRelations(
  1. ProfileModel model
)

Implementation

static Future<ProfileModel> refreshRelations(ProfileModel model) async {
  FeedModel? feedHolder;
  if (model.feed != null) {
    try {
      await feedRepository(appId: model.appId)!
          .get(model.feed!.documentID)
          .then((val) {
        feedHolder = val;
      }).catchError((error) {});
    } catch (_) {}
  }

  return model.copyWith(
    feed: feedHolder,
  );
}