Skip to content

Commit

Permalink
Merge pull request #2426 from opengovern/fix-queries
Browse files Browse the repository at this point in the history
fix: check parameters on running describers check
  • Loading branch information
artaasadi authored Jan 12, 2025
2 parents a2c7413 + 2f7aebc commit 0cc9853
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion services/scheduler/db/describe.go
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ func (db Database) GetLastDescribeIntegrationJob(integrationId, resourceType str

// Query with JSONB condition
tx := db.ORM.Preload(clause.Associations).
Where("integration_id = ? AND resource_type = ? AND parameters @> ?", integrationId, resourceType, parametersBytes).
Where("integration_id = ? AND resource_type = ? AND convert_from(parameters, 'UTF8')::JSONB @> ?::JSONB", integrationId, resourceType, parametersBytes).
Order("updated_at DESC").
First(&job)

Expand Down

0 comments on commit 0cc9853

Please sign in to comment.