lib/sequent/core/event_store.rb
Method store_events
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def store_events(command, streams_with_events = [])
command_record = CommandRecord.create!(command: command)
event_records = streams_with_events.flat_map do |event_stream, uncommitted_events|
unless event_stream.stream_record_id
stream_record = Sequent.configuration.stream_record_class.new