mirror of
https://github.com/labring/sealos.git
synced 2026-09-19 02:23:07 +08:00
fix(account): Manual copy to avoid copy() issues with complex types (#6480)
This commit is contained in:
@@ -1224,7 +1224,7 @@ func (m *MongoDB) GetAppCosts(req *helper.AppCostsReq) (results *common.AppCosts
|
||||
}
|
||||
|
||||
if strings.ToUpper(req.AppType) != resources.AppStore {
|
||||
var match bson.D
|
||||
var match = make(bson.D, len(matchConditions))
|
||||
copy(match, matchConditions[:])
|
||||
if req.AppType != "" {
|
||||
match = append(
|
||||
|
||||
Reference in New Issue
Block a user