From c75abb084cfc544948c2a3d3b9e6d14480d0daa9 Mon Sep 17 00:00:00 2001 From: Kristin Laemmert Date: Fri, 30 Dec 2022 17:00:45 +0100 Subject: [PATCH] CLI: Fix wire graph for reset-admin-password (#60846) fix(cli): correct wire binding for reset-admin-password The cli methods were updated to use the db.DB interface, but that interface was still wired in as the fake DB - it had only been used for tests previously. This isn't an issue in the main branch now that it's been collapsed into a single binary all using the same wire graph. Fixes #59915 --- pkg/cmd/grafana-cli/runner/wire.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/cmd/grafana-cli/runner/wire.go b/pkg/cmd/grafana-cli/runner/wire.go index 82efb1ce69e..3a3e283ade1 100644 --- a/pkg/cmd/grafana-cli/runner/wire.go +++ b/pkg/cmd/grafana-cli/runner/wire.go @@ -336,7 +336,7 @@ var wireSet = wire.NewSet( wire.Bind(new(notifications.EmailSender), new(*notifications.NotificationServiceMock)), dbtest.NewFakeDB, wire.Bind(new(sqlstore.Store), new(*sqlstore.SQLStore)), - wire.Bind(new(db.DB), new(*dbtest.FakeDB)), + wire.Bind(new(db.DB), new(*sqlstore.SQLStore)), prefimpl.ProvideService, opentsdb.ProvideService, acimpl.ProvideAccessControl,