Add a xtype parameter for future ES expansion

This commit is contained in:
2022-02-17 23:01:11 +00:00
parent 3111783f69
commit bc0a60a601

View File

@@ -516,6 +516,7 @@ class Transactions(object):
def write_to_es(self, msgtype, cast):
cast["type"] = msgtype
cast["ts"] = str(datetime.now().isoformat())
cast["xtype"] = "tx"
self.es.index(index=settings.ES.Index, document=cast)
def get_remaining(self):