Skip to content
This repository has been archived by the owner on Sep 11, 2022. It is now read-only.

Commit

Permalink
Release
Browse files Browse the repository at this point in the history
Signed-off-by: Dusan Malusev <[email protected]>
  • Loading branch information
Dusan Malusev committed Mar 13, 2022
1 parent ef639f1 commit 16b641d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion backend/pkg/services/ledger/ledger.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,10 @@ type (
Achievements []models.Achievement `json:"achievement"`
Events []models.Event `json:"events"`
}

EventBoard struct {

}
)

func (s *Service) CalculateUserMetrics(ctx context.Context, userId uint64) (*UserMetrics, error) {
Expand Down Expand Up @@ -75,7 +79,7 @@ func (s *Service) CalculateUserMetrics(ctx context.Context, userId uint64) (*Use
}, 0, 10)

db.Raw(
"SELECT exchange_rate_id, SUM(quantity) as quantity FROM ledgers WHERE user_id = ? GROUP BY exchange_rate_id",
"SELECT exchange_rate_id, SUM(quantity) as quantity FROM ledgers WHERE user_id = ? GROUP BY exchange_rate_id",
userId,
).Scan(&counts)

Expand Down

0 comments on commit 16b641d

Please sign in to comment.