mirror of
https://github.com/go-gitea/gitea
synced 2025-09-28 03:28:13 +00:00
refactor: rename tables to bot_*
This commit is contained in:
@@ -15,7 +15,7 @@ import (
|
||||
"xorm.io/builder"
|
||||
)
|
||||
|
||||
type RunList []*Run
|
||||
type RunList []*BotRun
|
||||
|
||||
// GetUserIDs returns a slice of user's id
|
||||
func (runs RunList) GetUserIDs() []int64 {
|
||||
@@ -111,5 +111,5 @@ func FindRuns(ctx context.Context, opts FindRunOptions) (RunList, int64, error)
|
||||
}
|
||||
|
||||
func CountRuns(ctx context.Context, opts FindRunOptions) (int64, error) {
|
||||
return db.GetEngine(ctx).Where(opts.toConds()).Count(new(Run))
|
||||
return db.GetEngine(ctx).Where(opts.toConds()).Count(new(BotRun))
|
||||
}
|
||||
|
Reference in New Issue
Block a user