Skip to content

Commit

Permalink
fix: scope query in resource selector
Browse files Browse the repository at this point in the history
  • Loading branch information
yashmehrotra committed Oct 28, 2024
1 parent 455555d commit 5088f7a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion query/resource_selector.go
Original file line number Diff line number Diff line change
Expand Up @@ -516,7 +516,7 @@ func getScopeID(ctx context.Context, scope string, table string, agentID *uuid.U
}

var id string
tx := q.First(&id)
tx := q.Find(&id)
if tx.RowsAffected != 1 {
agentToLog := "all"
if agentID != nil {
Expand Down

0 comments on commit 5088f7a

Please sign in to comment.