Update token call logic configuration.
(self, call_mode: str)
| 1484 | return CallLogicConfig(call_mode="default", polling_mode_enabled=False) |
| 1485 | |
| 1486 | async def update_call_logic_config(self, call_mode: str): |
| 1487 | """Update token call logic configuration.""" |
| 1488 | normalized = "polling" if call_mode == "polling" else "default" |
| 1489 | polling_mode_enabled = normalized == "polling" |
| 1490 | async with self._connect(write=True) as db: |
| 1491 | await db.execute(""" |
| 1492 | INSERT OR REPLACE INTO call_logic_config (id, call_mode, polling_mode_enabled, updated_at) |
| 1493 | VALUES (1, ?, ?, CURRENT_TIMESTAMP) |
| 1494 | """, (normalized, polling_mode_enabled)) |
| 1495 | await db.commit() |
| 1496 | |
| 1497 | # Request log operations |
| 1498 | async def add_request_log(self, log: RequestLog) -> int: |
no test coverage detected