0
0
Fork 1
Spiegel von https://github.com/paviliondev/discourse-custom-wizard.git synchronisiert 2024-11-26 02:50:28 +01:00

minor formatting

Dieser Commit ist enthalten in:
Faizaan Gagan 2021-02-26 09:53:39 +05:30
Ursprung 33e457a5c9
Commit cced7a8d25

Datei anzeigen

@ -36,6 +36,7 @@ class CustomWizard::RealtimeValidation::SimilarTopics
if time_n_value.to_i > 0 && time_unit.present? if time_n_value.to_i > 0 && time_unit.present?
topics.select! { |t| t.created_at >= time_n_value.to_i.send(time_unit).ago } topics.select! { |t| t.created_at >= time_n_value.to_i.send(time_unit).ago }
end end
topics.map! { |t| SimilarTopic.new(t) } topics.map! { |t| SimilarTopic.new(t) }
result.items = topics result.items = topics