mirror of
				https://github.com/go-gitea/gitea.git
				synced 2025-10-31 00:54:43 +01:00 
			
		
		
		
	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.
This commit is contained in:
		
							parent
							
								
									ed954b070d
								
							
						
					
					
						commit
						1f09051f2b
					
				| @ -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…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user