(params: { mcpServerId: string })
| 134 | } |
| 135 | |
| 136 | export async function loadOauthRow(params: { mcpServerId: string }): Promise<McpOauthRow | null> { |
| 137 | const [row] = await db |
| 138 | .select() |
| 139 | .from(mcpServerOauth) |
| 140 | .where(eq(mcpServerOauth.mcpServerId, params.mcpServerId)) |
| 141 | .limit(1) |
| 142 | if (!row) return null |
| 143 | return mapOauthRow(row) |
| 144 | } |
| 145 | |
| 146 | export async function setOauthRowUser(rowId: string, userId: string): Promise<void> { |
| 147 | await db |
no test coverage detected