Skip to content

Commit

Permalink
Merge pull request #2059 from opengovern/fix-enable-integration
Browse files Browse the repository at this point in the history
fix: fix update integration type enabled
  • Loading branch information
artaasadi authored Nov 24, 2024
2 parents 20429d6 + ba706f7 commit b781a4e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion services/integration/db/integration_type_setup.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ func (db Database) ListIntegrationTypeSetup() ([]models.IntegrationTypeSetup, er
func (db Database) UpdateIntegrationTypeSetup(integrationTypeSetup *models.IntegrationTypeSetup) error {
tx := db.Orm.
Where("integration_type = ?", integrationTypeSetup.IntegrationType).
Updates(integrationTypeSetup)
Update("enabled = ?", integrationTypeSetup.Enabled)
if tx.Error != nil {
return tx.Error
}
Expand Down

0 comments on commit b781a4e

Please sign in to comment.