This commit is contained in:
BoHung Chiu 2021-09-12 22:00:07 +08:00
parent 88be2136aa
commit 7178192060
1 changed files with 1 additions and 1 deletions

View File

@ -24,7 +24,7 @@ Rails.application.routes.draw do
if answer_group.nil?
answer_group = SurveyAnswerGroup.new(info)
end
answer_group.last_modified = survey_answers.last.updated_at
answer_group.last_modified = survey_answers.last.created_at
answer_group.survey_answer_ids = survey_answers.map{|a| a.id}
answer_group.save
end