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

View File

@ -14,7 +14,7 @@ Rails.application.routes.draw do
info.delete(:survey_answer_ids)
answer_group = SurveyAnswerGroup.new(info)
end
answer_group.last_modified = survey_answer.updated_at
answer_group.last_modified = survey_answer.created_at
answer_group.survey_answer_ids = [survey_answer.id]
answer_group.save
end