fix: rename table name string

This commit is contained in:
Jason Song
2022-11-29 13:47:09 +08:00
parent 04d72d3500
commit e33d4d7700
2 changed files with 4 additions and 4 deletions

View File

@ -196,7 +196,7 @@ func (opts FindRunnerOptions) toOrder() string {
func CountRunners(opts FindRunnerOptions) (int64, error) {
return db.GetEngine(db.DefaultContext).
Table("bots_runner").
Table(BotRunner{}).
Where(opts.toCond()).
OrderBy(opts.toOrder()).
Count()