Skip to content

Commit e8a36f0

Browse files
committed
refac
1 parent 2cf2565 commit e8a36f0

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

backend/open_webui/migrations/versions/8452d01d26d7_add_chat_message_table.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,10 +88,10 @@ def upgrade() -> None:
8888
sa.column("updated_at", sa.BigInteger()),
8989
)
9090

91-
# Fetch all chats (excluding shared chats which contain 'shared' in id)
91+
# Fetch all chats (excluding shared chats which have user_id starting with 'shared-')
9292
chats = conn.execute(
9393
sa.select(chat_table.c.id, chat_table.c.user_id, chat_table.c.chat).where(
94-
~chat_table.c.id.like("%shared%")
94+
~chat_table.c.user_id.like("shared-%")
9595
)
9696
).fetchall()
9797

0 commit comments

Comments
 (0)