Skip to content

Commit c58289d

Browse files
committed
fix: use new_topic
1 parent b0d7720 commit c58289d

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

src/server/api/memobase_server/controllers/modal/roleplay/proactive_topics.py

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -46,16 +46,16 @@ async def process_messages(
4646
if not interest.ok():
4747
return interest
4848
interest_data = interest.data()
49-
# if interest_data["action"] != "new_topic":
50-
# await append_user_status(
51-
# user_id,
52-
# project_id,
53-
# ContanstTable.roleplay_plot_status,
54-
# {
55-
# "interest": interest_data,
56-
# },
57-
# )
58-
# return Promise.resolve(ProactiveTopicData(action="continue"))
49+
if interest_data["action"] != "new_topic":
50+
await append_user_status(
51+
user_id,
52+
project_id,
53+
ContanstTable.roleplay_plot_status,
54+
{
55+
"interest": interest_data,
56+
},
57+
)
58+
return Promise.resolve(ProactiveTopicData(action="continue"))
5959
latests_statuses = await get_user_statuses(
6060
user_id, project_id, type=ContanstTable.roleplay_plot_status
6161
)

0 commit comments

Comments
 (0)