Files
MatchLiveTv/backend/app/services/recordings/increment_views.rb
Emiliano Frascaro 1f273f849d Aggiunge modulo Replay, Garage dev e YouTube a livello società.
Pipeline registrazione/upload con storage S3, archivio web e app, proxy replay
per il browser, OAuth YouTube sulla pagina club (Premium Full) e footer legale.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-03 07:53:11 +02:00

15 lines
286 B
Ruby

module Recordings
class IncrementViews
def initialize(recording)
@recording = recording
end
def call
return unless @recording.ready?
Recording.where(id: @recording.id).update_all("view_count = view_count + 1")
@recording.reload
end
end
end