Skip to content

Commit 641e816

Browse files
authored
Fix bad method call when deleting user secrets via API (#27829)
Fixed a little mistake when you deleting user secrets via the API. Found it when working on #27725. It should be backported to 1.21 I think.
1 parent 3c78cb8 commit 641e816

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

routers/api/v1/api.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -961,7 +961,7 @@ func Routes() *web.Route {
961961
m.Group("/actions/secrets", func() {
962962
m.Combo("/{secretname}").
963963
Put(bind(api.CreateOrUpdateSecretOption{}), user.CreateOrUpdateSecret).
964-
Delete(repo.DeleteSecret)
964+
Delete(user.DeleteSecret)
965965
})
966966

967967
m.Get("/followers", user.ListMyFollowers)

0 commit comments

Comments
 (0)