Skip to content

Release: develop -> main#3404

Merged
TaprootFreak merged 6 commits intomainfrom
develop
Mar 13, 2026
Merged

Release: develop -> main#3404
TaprootFreak merged 6 commits intomainfrom
develop

Conversation

@github-actions
Copy link

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

Yannick1712 and others added 4 commits March 12, 2026 16:36
* [DEV-4546] SupportIssue type VerificationCall

* [DEV-4546] Set department

* [DEV-4546] add phoneCallTimes and phoneCallStatus

* [DEV-4546] remove unused code

* [DEV-4546] remove more unused code

* [DEV-4546] auto set PhoneCallStatus with supportIssue

* [DEV-4546] Refactoring

* [DEV-4546] add migration

* [DEV-4546] add new amlReason

* [DEV-4546] Rename enum

* [DEV-4546] Refactoring

* [DEV-4546] Restructuring

* [DEV-4546] add phoneCall in user get endpoint

* [DEV-4546] Refactoring

* [DEV-4546] Refactoring 2

* [DEV-4546] Refactoring 3

* [DEV-4546] Rename status

* [DEV-4546] Refactoring 4

* [DEV-4546] fix bug

* [DEV-4546] Add anchor in failed mails
* [NOTASK]  move phoneCall to v2 user dto

* [NOTASK] fix build
* Add recommendation network graph API and enriched KYC step data

- Add BFS-based recommendation graph endpoint that traverses the entire
  connected network in both directions (recommender and recommended)
- Enrich KYC step support info with recommender/recommended user data
  and all recommendations by the same recommender
- Add recommendation lookup by kycStepId with fallback to recommendedId
  for mail invitations where kycStepId is null

* Harden recommendation graph: add node cap and batch user loading

- Cap BFS traversal at 500 nodes to prevent unbounded graph traversal
- Replace N individual getUserData calls with single batch query via
  getUserDataByIds using IN clause
- Remove direct UserDataRepository dependency from SupportService

* Fix prettier formatting
…rror (#3406)

* fix: load kycSteps relation in updateUser to prevent duplicate step error

updateUserV1 and updateUser did not load the kycSteps relation on
userData. When updatePhone called createCustomKycStep,
getNextSequenceNumber returned 0 (empty kycSteps array) instead of
the correct next value, causing a unique index violation on repeated
phone changes.

* fix: load kycSteps in updatePhone before creating audit step

When updatePhone calls createCustomKycStep, getNextSequenceNumber
needs the kycSteps relation to compute the correct sequence number.
If kycSteps is not loaded (e.g. when called from updateUserSettings),
it returns 0, causing a unique index violation on repeated phone
changes.

Load kycSteps on demand in updatePhone via getStepsByUserData, only
when createStep is true and kycSteps is not already loaded. This
follows the same pattern used in cron jobs and avoids loading kycSteps
unnecessarily in the outer user update queries.
TaprootFreak
TaprootFreak previously approved these changes Mar 13, 2026
@TaprootFreak TaprootFreak merged commit 14c31f7 into main Mar 13, 2026
12 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.

4 participants