Add a xtype parameter for future ES expansion

This commit is contained in:
Mark Veidemanis 2022-02-17 23:01:11 +00:00
parent df195d968c
commit 6979b6c34a
Signed by: m
GPG Key ID: 5ACFCEED46C0904F
1 changed files with 1 additions and 0 deletions

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):