Only process adoptions with MINING_ENABLED status for contribution calculation. This fixes the bug where non-final adoption records (PENDING, PAID, etc.) were incorrectly being processed, causing duplicate contribution records. Affected methods: - findUndistributedAdoptions: only process MINING_ENABLED adoptions - getDirectReferralAdoptedCount: only count users with MINING_ENABLED adoptions - getTotalTreesByAccountSequence: only sum trees from MINING_ENABLED adoptions - getTeamTreesByLevel: only count MINING_ENABLED adoptions - countUndistributedAdoptions: only count MINING_ENABLED adoptions Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| prisma | ||
| src | ||
| .env.example | ||
| DEVELOPMENT_GUIDE.md | ||
| Dockerfile | ||
| nest-cli.json | ||
| package-lock.json | ||
| package.json | ||
| tsconfig.json | ||