Skip to content
Snippets Groups Projects
Commit 99850987 authored by Gustavo S Frehse's avatar Gustavo S Frehse
Browse files

Issue #43: Check published status before indexing

parent 3268d4c7
No related branches found
No related tags found
1 merge request!41Issue #43: Check published status before indexing
Pipeline #34069 failed
......@@ -137,7 +137,7 @@ class LearningObject < ApplicationRecord
end
def should_index?
deleted_at.nil?
(deleted_at.nil? and state == "published")
end
def delete_index
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment