Skip to content

Commit

Permalink
delete property string to lower
Browse files Browse the repository at this point in the history
  • Loading branch information
bxy4543 committed Jul 28, 2023
1 parent 68680c7 commit d286b41
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions controllers/pkg/database/mongodb.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import (
"context"
"fmt"
"math"
"strings"
"time"

"github.com/labring/sealos/controllers/pkg/crypto"
Expand Down Expand Up @@ -197,7 +196,7 @@ func (m *MongoDB) GetAllPricesMap() (map[string]common.Price, error) {
if err != nil {
return nil, fmt.Errorf("decrypt price error: %v", err)
}
pricesMap[strings.ToLower(prices[i].Property)] = common.Price{
pricesMap[prices[i].Property] = common.Price{
Price: price,
Detail: prices[i].Detail,
Property: prices[i].Property,
Expand Down

0 comments on commit d286b41

Please sign in to comment.