diff --git a/lib/discourse_updates.rb b/lib/discourse_updates.rb index 4f445787777..908dafceb3e 100644 --- a/lib/discourse_updates.rb +++ b/lib/discourse_updates.rb @@ -130,7 +130,7 @@ module DiscourseUpdates return nil if entries.nil? entries.select! do |item| - item["discourse_version"].nil? || Discourse.has_needed_version?(Discourse::VERSION::STRING, item["discourse_version"]) rescue nil + item["discourse_version"].nil? || Discourse.has_needed_version?(last_installed_version, item["discourse_version"]) rescue nil end entries.sort_by { |item| Time.zone.parse(item["created_at"]).to_i }.reverse