Fix incomplete account records being read (#4998)
* Fix incomplete account records being read - Put account processing into redis lock - Do not save until record is complete * Fix spaces
This commit is contained in:
parent
813e650729
commit
41e6c8b151
2 changed files with 57 additions and 25 deletions
|
@ -18,7 +18,7 @@ class MediaProxyController < ApplicationController
|
|||
|
||||
def redownload!
|
||||
@media_attachment.file_remote_url = @media_attachment.remote_url
|
||||
@media_attachment.touch(:created_at)
|
||||
@media_attachment.created_at = Time.now.utc
|
||||
@media_attachment.save!
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue