1
1
mirror of https://github.com/go-gitea/gitea synced 2025-10-26 08:58:24 +00:00

chore: remove GetRunnerByToken

This commit is contained in:
Jason Song
2022-11-15 13:50:41 +08:00
parent 0682f0fcc5
commit 717344007a
3 changed files with 2 additions and 16 deletions

View File

@@ -49,7 +49,7 @@ func init() {
db.RegisterModel(new(RunnerToken))
}
// GetRunnerByToken returns a bot runner via token
// GetRunnerToken returns a bot runner via token
func GetRunnerToken(token string) (*RunnerToken, error) {
var runnerToken RunnerToken
has, err := db.GetEngine(db.DefaultContext).Where("token=?", token).Get(&runnerToken)