Browse Source

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>
tags/v1.19.0-rc1
Yarden Shoham 1 year ago
parent
commit
4d3e2b23b8
No account linked to committer's email address
1 changed files with 1 additions and 0 deletions
  1. 1
    0
      services/convert/mirror.go

+ 1
- 0
services/convert/mirror.go View File

@@ -24,6 +24,7 @@ func ToPushMirror(pm *repo_model.PushMirror) (*api.PushMirror, error) {
LastUpdateUnix: pm.LastUpdateUnix.FormatLong(),
LastError: pm.LastError,
Interval: pm.Interval.String(),
SyncOnCommit: pm.SyncOnCommit,
}, nil
}


Loading…
Cancel
Save