Add coverage for malformed version cleanup in SoftwareUpdateCheckService
, add helper query methods (#32876)
This commit is contained in:
parent
62d65504f6
commit
766358e52b
4 changed files with 73 additions and 4 deletions
|
@ -12,7 +12,7 @@ class SoftwareUpdateCheckService < BaseService
|
|||
|
||||
def clean_outdated_updates!
|
||||
SoftwareUpdate.find_each do |software_update|
|
||||
software_update.delete if Mastodon::Version.gem_version >= software_update.gem_version
|
||||
software_update.delete if software_update.outdated?
|
||||
rescue ArgumentError
|
||||
software_update.delete
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue