mirror of
https://github.com/discourse/discourse.git
synced 2025-06-04 11:11:13 +08:00
FEATURE: Create new helper method 'Discourse.stats' (#7388)
This commit is contained in:
@ -65,7 +65,7 @@ class S3Inventory
|
||||
log "#{missing_count} of #{uploads.count} #{model.name.underscore.pluralize} are missing"
|
||||
end
|
||||
|
||||
$redis.set("missing_s3_#{model.table_name}", missing_count)
|
||||
Discourse.stats.set("missing_s3_#{model.table_name}", missing_count)
|
||||
ensure
|
||||
connection.exec("DROP TABLE #{table_name}") unless connection.nil?
|
||||
end
|
||||
|
Reference in New Issue
Block a user