add context to api crud calls (#40047)

Signed-off-by: bergquist <carl.bergquist@gmail.com>
This commit is contained in:
Carl Bergquist
2021-10-11 14:35:31 +02:00
committed by GitHub
parent c9f25cf0a5
commit f20de5588b
4 changed files with 43 additions and 28 deletions

View File

@@ -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() {