From c344d04a97a4efe5c174652502054caa20613e27 Mon Sep 17 00:00:00 2001 From: Bohung Date: Sun, 12 Sep 2021 22:05:05 +0800 Subject: [PATCH] Fix bug. --- config/routes.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/routes.rb b/config/routes.rb index 3554da7..9409e9b 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -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