Skip to content

Commit 43902b4

Browse files
waleedlatif1claude
andcommitted
fix(mcp): use boolean credsChanged, not the imported function ref
shouldClearCache was checking the always-truthy oauthCredsChanged function import instead of the awaited boolean, so PATCH always cleared the cache. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
1 parent 3a7fc42 commit 43902b4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • apps/sim/app/api/mcp/servers/[id]

apps/sim/app/api/mcp/servers/[id]/route.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ export const PATCH = withRouteHandler(
186186

187187
const shouldClearCache =
188188
urlChanged ||
189-
oauthCredsChanged ||
189+
credsChanged ||
190190
body.enabled !== undefined ||
191191
body.headers !== undefined ||
192192
body.timeout !== undefined ||

0 commit comments

Comments
 (0)