This commit is contained in:
Timothy Jaeryang Baek 2026-10-13 01:55:12 +04:00
parent 03f5191aca
commit 4ca8fdc3fd
2 changed files with 3 additions and 2 deletions

View file

@ -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())

View file

@ -293,4 +293,3 @@ async def create_app_interaction(
source={'id': message.id, 'updated_at': message.updated_at},
db=db,
)