mirror of
https://gitee.com/gitea/gitea
synced 2025-11-02 23:50:26 +08:00
Move modules/mirror to services (#26737)
To solve the cyclic imports in a better way Closes #20261
This commit is contained in:
@@ -128,7 +128,7 @@ func GetPushMirrorsByRepoID(ctx context.Context, repoID int64, listOptions db.Li
|
||||
func GetPushMirrorsSyncedOnCommit(ctx context.Context, repoID int64) ([]*PushMirror, error) {
|
||||
mirrors := make([]*PushMirror, 0, 10)
|
||||
return mirrors, db.GetEngine(ctx).
|
||||
Where("repo_id=? AND sync_on_commit=?", repoID, true).
|
||||
Where("repo_id = ? AND sync_on_commit = ?", repoID, true).
|
||||
Find(&mirrors)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user