mirror of
https://github.com/System-End/hackatime.git
synced 2026-04-19 21:05:15 +00:00
11 lines
247 B
Ruby
11 lines
247 B
Ruby
class HeartbeatExportCleanupJob < ApplicationJob
|
|
queue_as :default
|
|
|
|
def perform(blob_id)
|
|
blob = ActiveStorage::Blob.find_by(id: blob_id)
|
|
return if blob.nil?
|
|
return unless blob.metadata["heartbeat_export"]
|
|
|
|
blob.purge
|
|
end
|
|
end
|