mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2025-01-02 14:28:52 -05:00
Reduce delay to 30 minutes
This commit is contained in:
parent
4973d23ef8
commit
9c2f3dac71
1 changed files with 1 additions and 1 deletions
|
@ -428,7 +428,7 @@ func FindRecentlyPushedNewBranches(ctx context.Context, repoID, userID int64, ex
|
||||||
Where("pusher_id=? AND is_deleted=?", userID, false).
|
Where("pusher_id=? AND is_deleted=?", userID, false).
|
||||||
And("name <> ?", excludeBranchName).
|
And("name <> ?", excludeBranchName).
|
||||||
And("repo_id = ?", repoID).
|
And("repo_id = ?", repoID).
|
||||||
And("commit_time >= ?", time.Now().Add(-time.Hour*6).Unix()).
|
And("commit_time >= ?", time.Now().Add(-time.Minute*30).Unix()).
|
||||||
NotIn("name", subQuery).
|
NotIn("name", subQuery).
|
||||||
OrderBy("branch.commit_time DESC").
|
OrderBy("branch.commit_time DESC").
|
||||||
Limit(2).
|
Limit(2).
|
||||||
|
|
Loading…
Reference in a new issue