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>
This commit is contained in:
14
backend/app/services/recordings/increment_views.rb
Normal file
14
backend/app/services/recordings/increment_views.rb
Normal file
@@ -0,0 +1,14 @@
|
||||
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
|
||||
Reference in New Issue
Block a user