push points
This commit is contained in:
@@ -48,7 +48,7 @@ func (r *customerPointsRepository) GetCustomerTotalTokens(ctx context.Context, c
|
||||
err := r.db.WithContext(ctx).
|
||||
Model(&entities.CustomerTokens{}).
|
||||
Where("customer_id = ?", customerID).
|
||||
Select("COALESCE(SUM(tokens), 0)").
|
||||
Select("COALESCE(SUM(balance), 0)").
|
||||
Scan(&totalTokens).Error
|
||||
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user