mirror of
https://github.com/open-webui/open-webui.git
synced 2026-12-04 02:28:02 -05:00
refac
This commit is contained in:
1 parent
c89336da5f
commit
1aa6ba58ba
1 file changed
+1
-1
@@ -349,7 +349,7 @@ async def publish_app_message_event(message, kind):
|
||||
return
|
||||
value = deepcopy(get_app_message_data(message))
|
||||
if kind == 'channel.message.deleted':
|
||||
value = {k: value[k] for k in ('id', 'channel_id', 'parent_id', 'updated_at')}
|
||||
value = {k: value[k] for k in ('id', 'channel_id', 'parent_id', 'author', 'updated_at')}
|
||||
# shortcut: events are lost on failure/restart; add durable delivery only if replay becomes required.
|
||||
await create_task(None, send_app_message_event(value, kind, time.time_ns()))
|
||||
|
||||
|
||||
Reference in new issue
Block a user