mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
add context to api crud calls (#40047)
Signed-off-by: bergquist <carl.bergquist@gmail.com>
This commit is contained in:
@@ -21,7 +21,7 @@ func TestTransaction(t *testing.T) {
|
||||
Convey("InTransaction", t, func() {
|
||||
cmd := &models.AddApiKeyCommand{Key: "secret-key", Name: "key", OrgId: 1}
|
||||
|
||||
err := AddApiKey(cmd)
|
||||
err := AddAPIKey(context.Background(), cmd)
|
||||
So(err, ShouldBeNil)
|
||||
|
||||
Convey("can update key", func() {
|
||||
|
||||
Reference in New Issue
Block a user