fix/no commit db

This commit is contained in:
SouthFox 2023-03-21 09:32:26 +08:00
parent 9d0bca641b
commit fe09de3cd8

View file

@ -54,7 +54,9 @@ async def save_incoming(
ap_object=payload, ap_object=payload,
) )
if process_incoming(db_session, payload): if await process_incoming(db_session, payload):
await db_session.commit()
await db_session.flush()
return incoming_activity return incoming_activity
db_session.add(incoming_activity) db_session.add(incoming_activity)