aboutsummaryrefslogtreecommitdiffstats
path: root/services/convert
diff options
context:
space:
mode:
authorsillyguodong <33891828+sillyguodong@users.noreply.github.com>2023-02-24 05:50:33 +0800
committerGitHub <noreply@github.com>2023-02-23 15:50:33 -0600
commit1f09051f2b0893933ec4cd9fccbb6137e7e9df89 (patch)
tree64c0d2112c55a932120130049d98891fe1def491 /services/convert
parented954b070d481a14aac08f925a15ecc8c2c33c61 (diff)
downloadgitea-1f09051f2b0893933ec4cd9fccbb6137e7e9df89.tar.gz
gitea-1f09051f2b0893933ec4cd9fccbb6137e7e9df89.zip
Fix SyncOnCommit always return false in API of push_mirrors (#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.
Diffstat (limited to 'services/convert')
-rw-r--r--services/convert/mirror.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/services/convert/mirror.go b/services/convert/mirror.go
index 1dcfc9b64d..f7a8e17fd0 100644
--- a/services/convert/mirror.go
+++ b/services/convert/mirror.go
@@ -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
}