(taskQueueId: string)
| 238 | } |
| 239 | |
| 240 | function readWorkspaceIdForTaskQueueSync(taskQueueId: string): string | null { |
| 241 | const db = getDatabase(); |
| 242 | const row = db.prepare( |
| 243 | "SELECT workspace_id AS workspaceId FROM agent_task_queue WHERE id = ?", |
| 244 | ).get(taskQueueId) as { workspaceId?: string } | undefined; |
| 245 | |
| 246 | return typeof row?.workspaceId === "string" ? row.workspaceId : null; |
| 247 | } |
no test coverage detected