Skip to content

Release: develop -> main#3367

Merged
TaprootFreak merged 1 commit intomainfrom
develop
Mar 5, 2026
Merged

Release: develop -> main#3367
TaprootFreak merged 1 commit intomainfrom
develop

Conversation

@github-actions
Copy link

@github-actions github-actions bot commented Mar 5, 2026

Automatic Release PR

This PR was automatically created after changes were pushed to develop.

Commits: 1 new commit(s)

Checklist

  • Review all changes
  • Verify CI passes
  • Approve and merge when ready for production

…3226)

* fix: review nationality step immediately instead of waiting for cron job

The nationality review check is trivial (blocked/merged user, allowed nationality)
and can be performed inline when the user submits their data, eliminating
the up-to-1-minute wait for the cron job to process the step.

* refactor: extract shared reviewNationalityData helper method

Eliminate code duplication between updateNationalityStep (inline review)
and reviewNationalityStep (cron job) by extracting the review logic
into a single private helper method.

* refactor: remove dead nationality branch from updateKycStep

The nationality path is now handled by the dedicated updateNationalityStep
method, so the if (data.nationality) branch in updateKycStep is unreachable.

* refactor: save nationality data with final status in single DB write

Address review feedback: instead of first saving with INTERNAL_REVIEW
and then immediately changing the status, determine the final status
inline and save data + status in one DB write. This eliminates the
unnecessary intermediate INTERNAL_REVIEW state and reduces DB writes
and step logs from 2 to 1 for non-residence-permit countries.
@TaprootFreak TaprootFreak merged commit 32dcf96 into main Mar 5, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant