Skip to content

Commit 25bc3d5

Browse files
GiteaBotjbgomond
andauthored
Fix bad method call when deleting user secrets via API (#27829) (#27831)
Backport #27829 by @jbgomond 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. Co-authored-by: Jean-Baptiste Gomond <dev@jbgomond.com>
1 parent 991c959 commit 25bc3d5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

routers/api/v1/api.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -960,7 +960,7 @@ func Routes() *web.Route {
960960
m.Group("/actions/secrets", func() {
961961
m.Combo("/{secretname}").
962962
Put(bind(api.CreateOrUpdateSecretOption{}), user.CreateOrUpdateSecret).
963-
Delete(repo.DeleteSecret)
963+
Delete(user.DeleteSecret)
964964
})
965965

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

0 commit comments

Comments
 (0)