File tree Expand file tree Collapse file tree
platforms/eReputation-api/src/controllers Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -33,8 +33,8 @@ export class DashboardController {
3333 try {
3434 const userId = req . user ! . id ;
3535
36- // Get total references received by this user
37- const receivedReferences = await this . referenceService . getReferencesForTarget ( "user" , userId ) ;
36+ // Get total references received by this user (only count signed ones for stats)
37+ const receivedReferences = await this . referenceService . getReferencesForTarget ( "user" , userId , true ) ;
3838
3939 res . json ( {
4040 totalReferences : receivedReferences . length . toString ( )
@@ -59,8 +59,8 @@ export class DashboardController {
5959 // Get user's calculations
6060 const calculations = await this . calculationService . getUserCalculations ( userId ) ;
6161
62- // Get references received by this user
63- const receivedReferences = await this . referenceService . getReferencesForTarget ( "user" , userId ) ;
62+ // Get references received by this user (include pending references)
63+ const receivedReferences = await this . referenceService . getReferencesForTarget ( "user" , userId , false ) ;
6464
6565 // Combine and format activities
6666 const activities : any [ ] = [ ] ;
You can’t perform that action at this time.
0 commit comments