Class: Tracker::Application::StartStory

Inherits:
Object
  • Object
show all
Includes:
Interactor
Defined in:
lib/tracker/application/start_story.rb

Instance Method Summary collapse

Instance Method Details

#performObject



8
9
10
11
12
# File 'lib/tracker/application/start_story.rb', line 8

def perform
  story_id = context[:story_id]

  Tracker.pg[:stories].where(id: story_id).update(started_at: Sequel::CURRENT_TIMESTAMP)
end