Skip to content

Commit

Permalink
fix: check parameters on running describers check
Browse files Browse the repository at this point in the history
  • Loading branch information
artaasadi committed Jan 12, 2025
1 parent 30b95c0 commit 2f7aebc
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 2f7aebc

Please sign in to comment.