Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
chenpangpang
open-webui
Commits
4e9ca311
"src/lib/vscode:/vscode.git/clone" did not exist on "f2b9a5f5bf666f025b22835350e14f9a1d275302"
Commit
4e9ca311
authored
Apr 02, 2024
by
Timothy J. Baek
Browse files
Update chats.py
parent
48e73763
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
backend/apps/web/routers/chats.py
backend/apps/web/routers/chats.py
+1
-1
No files found.
backend/apps/web/routers/chats.py
View file @
4e9ca311
...
@@ -232,7 +232,7 @@ async def delete_shared_chat_by_id(id: str, user=Depends(get_current_user)):
...
@@ -232,7 +232,7 @@ async def delete_shared_chat_by_id(id: str, user=Depends(get_current_user)):
if
chat
:
if
chat
:
if
not
chat
.
share_id
:
if
not
chat
.
share_id
:
return
False
return
False
result
=
Chats
.
delete_chat_by_
id_and_user_id
(
chat
.
share_id
,
"shared"
)
result
=
Chats
.
delete_
shared_
chat_by_
chat_id
(
chat
.
id
)
update_result
=
Chats
.
update_chat_share_id_by_id
(
chat
.
id
,
None
)
update_result
=
Chats
.
update_chat_share_id_by_id
(
chat
.
id
,
None
)
return
result
and
update_result
return
result
and
update_result
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment