[fix] Wise 同步遇到要求 SCA 的帳戶改為跳過並列出 - #72
Merged
Merged
Conversation
✅ SonarQube Quality Gate passed — pathorsAI_internal0 open issues on this PR. |
yui0303
approved these changes
Sep 28, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Wise 對部分 profile 的 balance statement 會回 403 + x-2fa-approval(要求 SCA)。原本任一帳戶丟 WiseScaRequiredError 就讓整次同步失敗。
改成:該餘額跳過並列在 skippedBalances(reason = sca_required,附中英文說明),其他帳戶照常同步。MCP 輸出 schema 的 enum 一併補上。
驗證:tsc、eslint 通過;dry run 下未受影響的帳戶正常產出同步預覽。