fix: sor.I→sor.C for insert (I is inspect, C is create)
This commit is contained in:
parent
614c883863
commit
a4ac438c49
@ -18,7 +18,7 @@ if action == 'send_message':
|
|||||||
async with DBPools().sqlorContext(dbname) as sor:
|
async with DBPools().sqlorContext(dbname) as sor:
|
||||||
# Save user message
|
# Save user message
|
||||||
msg_id = getID()
|
msg_id = getID()
|
||||||
await sor.I('sd_conversations', {
|
await sor.C('sd_conversations', {
|
||||||
'id': msg_id,
|
'id': msg_id,
|
||||||
'iteration_id': iteration_id,
|
'iteration_id': iteration_id,
|
||||||
'task_id': task_id or '',
|
'task_id': task_id or '',
|
||||||
@ -50,7 +50,7 @@ if action == 'send_message':
|
|||||||
|
|
||||||
# Save agent message
|
# Save agent message
|
||||||
agent_msg_id = getID()
|
agent_msg_id = getID()
|
||||||
await sor.I('sd_conversations', {
|
await sor.C('sd_conversations', {
|
||||||
'id': agent_msg_id,
|
'id': agent_msg_id,
|
||||||
'iteration_id': iteration_id,
|
'iteration_id': iteration_id,
|
||||||
'task_id': task_id or '',
|
'task_id': task_id or '',
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user