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>
15 lines
286 B
Ruby
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
|