aboutsummaryrefslogtreecommitdiffstats
path: root/routers
diff options
context:
space:
mode:
authorJason Song <i@wolfogre.com>2023-10-18 23:52:44 +0800
committerGitHub <noreply@github.com>2023-10-18 15:52:44 +0000
commit0a2b93d411e8b5685a584be069da07dfc163f03c (patch)
tree32165303639418c13628bc1607354c307b2b5baf /routers
parent0b654fa8dc132cce191f43fb9bdf4d5864e11b7c (diff)
downloadgitea-0a2b93d411e8b5685a584be069da07dfc163f03c.tar.gz
gitea-0a2b93d411e8b5685a584be069da07dfc163f03c.zip
Fix typo "GetLatestRunnerToken" (#27680)
Diffstat (limited to 'routers')
-rw-r--r--routers/private/actions.go2
-rw-r--r--routers/web/shared/actions/runners.go4
2 files changed, 3 insertions, 3 deletions
diff --git a/routers/private/actions.go b/routers/private/actions.go
index 025a6a2c39..886f23b1c2 100644
--- a/routers/private/actions.go
+++ b/routers/private/actions.go
@@ -41,7 +41,7 @@ func GenerateActionsRunnerToken(ctx *context.PrivateContext) {
})
}
- token, err := actions_model.GetLastestRunnerToken(ctx, owner, repo)
+ token, err := actions_model.GetLatestRunnerToken(ctx, owner, repo)
if errors.Is(err, util.ErrNotExist) || (token != nil && !token.IsActive) {
token, err = actions_model.NewRunnerToken(ctx, owner, repo)
if err != nil {
diff --git a/routers/web/shared/actions/runners.go b/routers/web/shared/actions/runners.go
index cd60e9cbee..1da4ddf14f 100644
--- a/routers/web/shared/actions/runners.go
+++ b/routers/web/shared/actions/runners.go
@@ -35,7 +35,7 @@ func RunnersList(ctx *context.Context, opts actions_model.FindRunnerOptions) {
// ownid=0,repo_id=0,means this token is used for global
var token *actions_model.ActionRunnerToken
- token, err = actions_model.GetLastestRunnerToken(ctx, opts.OwnerID, opts.RepoID)
+ token, err = actions_model.GetLatestRunnerToken(ctx, opts.OwnerID, opts.RepoID)
if errors.Is(err, util.ErrNotExist) || (token != nil && !token.IsActive) {
token, err = actions_model.NewRunnerToken(ctx, opts.OwnerID, opts.RepoID)
if err != nil {
@@ -43,7 +43,7 @@ func RunnersList(ctx *context.Context, opts actions_model.FindRunnerOptions) {
return
}
} else if err != nil {
- ctx.ServerError("GetLastestRunnerToken", err)
+ ctx.ServerError("GetLatestRunnerToken", err)
return
}