Skip to content

Commit

Permalink
fix filter bug
Browse files Browse the repository at this point in the history
  • Loading branch information
hexaforce committed Nov 25, 2024
1 parent 62ae80f commit afd09e0
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions server/internal/infrastructure/mongo/asset.go
Original file line number Diff line number Diff line change
Expand Up @@ -70,11 +70,8 @@ func (r *Asset) FindByWorkspace(ctx context.Context, id accountdomain.WorkspaceI
}

var filter any = bson.M{
"team": id.String(),
"$or": []bson.M{
{"coresupport": true},
{"coresupport": bson.M{"$exists": false}},
},
"team": id.String(),
"coresupport": true,
}

if uFilter.Keyword != nil {
Expand Down

0 comments on commit afd09e0

Please sign in to comment.