Merge commit 'e72676e83a' into upstream-20240115

This commit is contained in:
KMY 2024-01-15 19:30:55 +09:00
commit ad87f2b100
2 changed files with 12 additions and 14 deletions

View file

@ -19,7 +19,7 @@ class Api::V1::MarkersController < Api::BaseController
@markers = {}
resource_params.each_pair do |timeline, timeline_params|
@markers[timeline] = current_user.markers.find_or_initialize_by(timeline: timeline)
@markers[timeline] = current_user.markers.find_or_create_by(timeline: timeline)
@markers[timeline].update!(timeline_params)
end
end