refactor: rename tables to bot_*

This commit is contained in:
Jason Song committed 2022-11-29 12:34:23 +08:00
1 parent 3ac6bf3db4
commit 04d72d3500
20 files changed
+173 -201

No files matched your search

+1 -1
View File
@@ -37,7 +37,7 @@ func RunnersList(ctx *context.Context, tplName base.TplName, opts bots_model.Fin
}
// ownid=0,repo_id=0,means this token is used for global
var token *bots_model.RunnerToken
var token *bots_model.BotRunnerToken
token, err = bots_model.GetUnactivatedRunnerToken(opts.OwnerID, opts.RepoID)
if _, ok := err.(bots_model.ErrRunnerTokenNotExist); ok {
token, err = bots_model.NewRunnerToken(opts.OwnerID, opts.RepoID)