Skip to content

Commit

Permalink
singletone action upload in appendmode fix
Browse files Browse the repository at this point in the history
  • Loading branch information
spandan_mondal committed Nov 29, 2024
1 parent 48554f8 commit d2c663d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions kairon/shared/data/action_serializer.py
Original file line number Diff line number Diff line change
Expand Up @@ -338,6 +338,10 @@ def deserialize(bot: str, user: str, actions: Optional[dict] = None, other_colle
elif action_info.get('single_instance'):
if overwrite:
filtered_actions[action_type] = actions[action_type]
else:
existing_action = action_info.get("db_model").objects(bot=bot).first()
if not existing_action:
filtered_actions[action_type] = actions[action_type]
else:
new_actions = []
action_names = []
Expand Down

0 comments on commit d2c663d

Please sign in to comment.