Skip to content

Commit

Permalink
fix golangci-lint (labring#3935)
Browse files Browse the repository at this point in the history
  • Loading branch information
bxy4543 committed Oct 13, 2023
1 parent 3ad8a4d commit c8a2331
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions controllers/pkg/database/mongodb.go
Original file line number Diff line number Diff line change
Expand Up @@ -115,8 +115,8 @@ func (m *MongoDB) GetBillingHistoryNamespaceList(nsHistorySpec *accountv1.Namesp
}

pipeline := mongo.Pipeline{
{{"$match", filter}},
{{"$group", bson.D{{"_id", nil}, {"namespaces", bson.D{{"$addToSet", "$namespace"}}}}}},
{{Key: "$match", Value: filter}},
{{Key: "$group", Value: bson.D{{Key: "_id", Value: nil}, {Key: "namespaces", Value: bson.D{{Key: "$addToSet", Value: "$namespace"}}}}}},
}

cur, err := m.getBillingCollection().Aggregate(context.Background(), pipeline)
Expand Down

0 comments on commit c8a2331

Please sign in to comment.