From 6a6540f1918b06b9521152f85f4a789fc9d9d47c Mon Sep 17 00:00:00 2001 From: Nupur Khare <78532321+nupur-khare@users.noreply.github.com> Date: Fri, 5 Jan 2024 09:44:53 +0530 Subject: [PATCH] Database action fix. (#1109) Co-authored-by: Nupur Khare Co-authored-by: udit-pandey --- kairon/actions/definitions/database.py | 1 + 1 file changed, 1 insertion(+) diff --git a/kairon/actions/definitions/database.py b/kairon/actions/definitions/database.py index ac78173b0..84e708945 100644 --- a/kairon/actions/definitions/database.py +++ b/kairon/actions/definitions/database.py @@ -37,6 +37,7 @@ def retrieve_config(self): try: vector_action_dict = DatabaseAction.objects(bot=self.bot, name=self.name, status=True).get().to_mongo().to_dict() + vector_action_dict.pop('_id', None) logger.debug("vector_action_config: " + str(vector_action_dict)) return vector_action_dict except DoesNotExist as e: