Open hasyrails opened 3 years ago
- await axios.post('api/schedules', schedule)
+ axios.post('api/schedules', schedule)
Schedule Create (102701.3ms) INSERT INTO "schedules" ("body", "start", "deadline", "date_year", "date_month", "date_day", "card_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "kkkkkk"], ["start", "2020-11-01"], ["deadline", "2020-11-30"], ["date_year", 2020], ["date_month", 11], ["date_day", 11], ["card_id", 34], ["user_id", 6], ["created_at", "2020-11-01 22:21:26.742717"], ["updated_at", "2020-11-01 22:21:26.742717"]]
22:23:09 web.1 | Processing by HomeController#index as HTML
22:23:09 web.1 | (1.8ms) commit transaction
22:23:09 web.1 | ↳ app/controllers/api/schedules_controller.rb:19
22:23:09 web.1 | Parameters: {"path"=>"schedules"}
22:23:09 web.1 | ↳ app/controllers/api/schedules_controller.rb:19
22:23:09 web.1 | (0.2ms) rollback transaction
22:23:09 web.1 | Completed 200 OK in 102750ms (Views: 0.5ms | ActiveRecord: 4.7ms)
22:23:09 web.1 |
22:23:09 web.1 |
22:23:09 web.1 | ↳ app/controllers/api/schedules_controller.rb:19
22:23:09 web.1 | Completed 500 Internal Server Error in 102783ms (ActiveRecord: 102701.8ms)
22:23:09 web.1 |
22:23:09 web.1 |
22:23:09 web.1 |
22:23:09 web.1 | ActiveRecord::StatementInvalid (SQLite3::BusyException: database is locked: INSERT INTO "schedules" ("body", "start", "deadline", "date_year", "date_month", "date_day", "card_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)):
ActiveRecord::StatementInvalid (SQLite3::BusyException: database is locked:
ref #298 MySQLに変更することで改善
現状
card.start / card.deadline を 1ヶ月期間で登録すると、2日分しか登録できない?
リロード処理を無くしてもダメ
予定を登録するメソッド