Commit 16bd2638 authored by takatost's avatar takatost

fix agent app converter command

parent 45bfa921
......@@ -405,12 +405,12 @@ def convert_to_agent_apps():
click.echo('Converting app: {}'.format(app.id))
try:
app.mode = AppMode.AGENT.value
app.mode = AppMode.AGENT_CHAT.value
db.session.commit()
# update conversation mode to agent
db.session.query(Conversation).filter(Conversation.app_id == app.id).update(
{Conversation.mode: AppMode.AGENT.value}
{Conversation.mode: AppMode.AGENT_CHAT.value}
)
db.session.commit()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment