upsertLearningHistory method

  1. @override
Future<void> upsertLearningHistory(
  1. LearningHistory history
)
override

Implementation

@override
Future<void> upsertLearningHistory(LearningHistory history) async {
  try {
    await _client.updateLearningHistoryPost(learningHistory: history);
  } on DioException catch (error, stackTrace) {
    throw await _dioErrorHandler.handleDioError(
      error,
      stackTrace,
      null,
    );
  } catch (error, stackTrace) {
    throw _repositoryErrorHandler.handleUnknownError(error, stackTrace);
  }
}