mirror of
https://github.com/open-webui/open-webui.git
synced 2026-10-13 03:58:26 +00:00
refac
This commit is contained in:
parent
03f5191aca
commit
4ca8fdc3fd
2 changed files with 3 additions and 2 deletions
|
|
@ -223,7 +223,9 @@ class AppsTable:
|
|||
return None
|
||||
app.is_active = False
|
||||
app.api_key = None
|
||||
app.data = {k: v for k, v in app.data.items() if k not in ('connection_token', 'installation_id', 'webui_url')}
|
||||
app.data = {
|
||||
k: v for k, v in app.data.items() if k not in ('connection_token', 'installation_id', 'webui_url')
|
||||
}
|
||||
app.updated_at = max(time.time_ns(), app.updated_at + 1)
|
||||
await db.execute(
|
||||
update(ChannelMember).where(ChannelMember.app_id == id).values(is_active=False, left_at=time.time_ns())
|
||||
|
|
|
|||
|
|
@ -293,4 +293,3 @@ async def create_app_interaction(
|
|||
source={'id': message.id, 'updated_at': message.updated_at},
|
||||
db=db,
|
||||
)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue