aboutsummaryrefslogtreecommitdiffstats
path: root/models/actions
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 /models/actions
parent0b654fa8dc132cce191f43fb9bdf4d5864e11b7c (diff)
downloadgitea-0a2b93d411e8b5685a584be069da07dfc163f03c.tar.gz
gitea-0a2b93d411e8b5685a584be069da07dfc163f03c.zip
Fix typo "GetLatestRunnerToken" (#27680)
Diffstat (limited to 'models/actions')
-rw-r--r--models/actions/runner_token.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/models/actions/runner_token.go b/models/actions/runner_token.go
index cf4e90f3f1..ccd9bbccb3 100644
--- a/models/actions/runner_token.go
+++ b/models/actions/runner_token.go
@@ -82,8 +82,8 @@ func NewRunnerToken(ctx context.Context, ownerID, repoID int64) (*ActionRunnerTo
})
}
-// GetLastestRunnerToken returns the latest runner token
-func GetLastestRunnerToken(ctx context.Context, ownerID, repoID int64) (*ActionRunnerToken, error) {
+// GetLatestRunnerToken returns the latest runner token
+func GetLatestRunnerToken(ctx context.Context, ownerID, repoID int64) (*ActionRunnerToken, error) {
var runnerToken ActionRunnerToken
has, err := db.GetEngine(ctx).Where("owner_id=? AND repo_id=?", ownerID, repoID).
OrderBy("id DESC").Get(&runnerToken)