lint fixes

This commit is contained in:
Elfo404 2022-07-07 15:42:09 +02:00
parent c972f92299
commit deff0a8c99
No known key found for this signature in database
GPG Key ID: 586539D9491F0726

View File

@ -304,9 +304,9 @@ func (ss *SQLStore) UpdateCorrelations(ctx context.Context, cmd *datasources.Upd
// the reason we allow cmd.version > db.version is make it possible for people to force
// updates to datasources using the datasource.yaml file without knowing exactly what version
// a datasource have in the db.
updateSession = sess.Where("uid=? and org_id=? and version < ?", cmd.SourceUID, cmd.OrgId, ds.Version)
updateSession = updateSession.Where("uid=? and org_id=? and version < ?", cmd.SourceUID, cmd.OrgId, ds.Version)
} else {
updateSession = sess.Where("uid=? and org_id=?", cmd.SourceUID, cmd.OrgId)
updateSession = updateSession.Where("uid=? and org_id=?", cmd.SourceUID, cmd.OrgId)
}
affected, err := updateSession.Update(ds)