You've already forked mpbot-github
mirror of
https://github.com/macports/mpbot-github.git
synced 2026-03-31 14:46:03 -07:00
dbutil: Query pull requests from prDB, not wwwDB
In testing prDB, wwwDB and tracDB are all the same thing, but our deployment actually uses three different databases, causing the maintainer timeout cronjob to always fail.
This commit is contained in:
@@ -176,7 +176,7 @@ func (sqlDB *sqlDBHelper) GetPR(number int) (*PullRequest, error) {
|
||||
|
||||
func (sqlDB *sqlDBHelper) GetTimeoutPRs() ([]*PullRequest, error) {
|
||||
var prs []*PullRequest
|
||||
rows, err := sqlDB.wwwDB.Query("SELECT number, processed, pending_review, maintainers "+
|
||||
rows, err := sqlDB.prDB.Query("SELECT number, processed, pending_review, maintainers "+
|
||||
"FROM pull_requests "+
|
||||
"WHERE created <= $1 AND pending_review = true", time.Now().AddDate(0, 0, -3))
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user