Skip to content

Commit 4d3e2b2

Browse files
yardenshohamsillyguodonglunny
authored
Fix SyncOnCommit always return false in API of push_mirrors (#23088) (#23100)
Backport #23088 Fix: #22990 --- Before, the return value of the api is always false,regrardless of whether the entry of `sync_on_commit` is true or false. I have confirmed that the value of `sync_on_commit` dropped into the database is correct. So, I think it is enough to make some small changes. Co-authored-by: sillyguodong <33891828+sillyguodong@users.noreply.github.com> Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
1 parent ddf6137 commit 4d3e2b2

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Diff for: services/convert/mirror.go

+1
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ func ToPushMirror(pm *repo_model.PushMirror) (*api.PushMirror, error) {
2424
LastUpdateUnix: pm.LastUpdateUnix.FormatLong(),
2525
LastError: pm.LastError,
2626
Interval: pm.Interval.String(),
27+
SyncOnCommit: pm.SyncOnCommit,
2728
}, nil
2829
}
2930

0 commit comments

Comments
 (0)