fix reindex active_key

This commit is contained in:
simon 2023-01-07 15:53:32 +07:00
parent 5888e5442a
commit 9a526f93f4
No known key found for this signature in database
GPG Key ID: 2C15AA5E89985DD4

View File

@ -100,7 +100,7 @@ class ReindexOutdated(ReindexBase):
refresh_key = reindex_config["refresh_key"] refresh_key = reindex_config["refresh_key"]
now_lte = self.now - self.interval * 24 * 60 * 60 now_lte = self.now - self.interval * 24 * 60 * 60
must_list = [ must_list = [
{"match": {"active": True}}, {"match": {reindex_config["active_key"]: True}},
{"range": {refresh_key: {"lte": now_lte}}}, {"range": {refresh_key: {"lte": now_lte}}},
] ]
data = { data = {