Skip to content

Commit

Permalink
Fix Issue #78
Browse files Browse the repository at this point in the history
  • Loading branch information
Woohyeok Choi committed Oct 26, 2020
1 parent 2725fa5 commit 64a9e43
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -109,8 +109,7 @@ class SurveyViewModel(
)

dataRepository.put(updatedSurvey)
dataRepository.put(responses)

responses.forEach { dataRepository.put(it) }
dataRepository.put(toSurveyEntity(updatedSurvey, responses))
saveStatusChannel.send(State.Success(Unit))
} catch (e: Exception) {
Expand All @@ -133,7 +132,9 @@ class SurveyViewModel(
}
toSurveyEntity(survey, responses)
}
dataRepository.put(expiredEntities)
expiredEntities.forEach {
dataRepository.put(it)
}
} catch (e: Exception) { }
}

Expand Down

0 comments on commit 64a9e43

Please sign in to comment.