(rowId: string, userId: string)
| 144 | } |
| 145 | |
| 146 | export async function setOauthRowUser(rowId: string, userId: string): Promise<void> { |
| 147 | await db |
| 148 | .update(mcpServerOauth) |
| 149 | .set({ userId, updatedAt: new Date() }) |
| 150 | .where(eq(mcpServerOauth.id, rowId)) |
| 151 | } |
| 152 | |
| 153 | export async function loadOauthRowByState(state: string): Promise<McpOauthRow | null> { |
| 154 | const [row] = await db |
no test coverage detected