diff options
author | Chongyi Zheng <git@zcy.dev> | 2023-08-26 22:24:45 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-08-27 10:24:45 +0800 |
commit | 43652746f2929aeb53ec1e575c3691050755a0b5 (patch) | |
tree | 8f2f05ca05fc6ad1b5c557c77a95f17c0f2381bc /models/repo | |
parent | 37b3ba22a1dcf88cf4bfa4a7861703c8a5701f5c (diff) | |
download | gitea-43652746f2929aeb53ec1e575c3691050755a0b5.tar.gz gitea-43652746f2929aeb53ec1e575c3691050755a0b5.zip |
Move `modules/mirror` to `services` (#26737)
To solve the cyclic imports in a better way
Closes #20261
Diffstat (limited to 'models/repo')
-rw-r--r-- | models/repo/pushmirror.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/models/repo/pushmirror.go b/models/repo/pushmirror.go index dad9a9d388..3edbcceb9b 100644 --- a/models/repo/pushmirror.go +++ b/models/repo/pushmirror.go @@ -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) } |