This commit is contained in:
yp05327 2023-07-10 08:30:09 +00:00
parent 5489962aac
commit c8f707b890
1 changed files with 1 additions and 1 deletions

View File

@ -391,7 +391,7 @@ func FindRecentlyPushedNewBranches(ctx context.Context, repoID, userID int64) (B
"issue.is_closed": false,
})
err := db.GetEngine(ctx).
Where("pusher_id=? AND is_deleted=?", userID, false).
Where("repo_id=? AND pusher_id=? AND is_deleted=?", repoID, userID, false).
And("updated_unix >= ?", time.Now().Add(-time.Hour*6).Unix()).
NotIn("name", subQuery).
OrderBy("branch.updated_unix DESC").