From deff0a8c992d8f49e105c934690f4a0557fbef31 Mon Sep 17 00:00:00 2001 From: Elfo404 Date: Thu, 7 Jul 2022 15:42:09 +0200 Subject: [PATCH] lint fixes --- pkg/services/sqlstore/datasource.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/services/sqlstore/datasource.go b/pkg/services/sqlstore/datasource.go index e6e362cd157..ee6f5370540 100644 --- a/pkg/services/sqlstore/datasource.go +++ b/pkg/services/sqlstore/datasource.go @@ -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)