mirror of https://github.com/goharbor/harbor.git
				
				
				
			The purge job update time is wrong (#16943)
Signed-off-by: stonezdj <stonezdj@gmail.com>
This commit is contained in:
		
							parent
							
								
									5dcd2ccf8e
								
							
						
					
					
						commit
						a5d79a859c
					
				| 
						 | 
				
			
			@ -165,7 +165,7 @@ func (p *purgeAPI) GetPurgeHistory(ctx context.Context, params purge.GetPurgeHis
 | 
			
		|||
			},
 | 
			
		||||
			Status:       exec.Status,
 | 
			
		||||
			CreationTime: exec.StartTime,
 | 
			
		||||
			UpdateTime:   exec.EndTime,
 | 
			
		||||
			UpdateTime:   exec.UpdateTime,
 | 
			
		||||
		})
 | 
			
		||||
	}
 | 
			
		||||
	var results []*models.ExecHistory
 | 
			
		||||
| 
						 | 
				
			
			@ -204,7 +204,7 @@ func (p *purgeAPI) GetPurgeJob(ctx context.Context, params purge.GetPurgeJobPara
 | 
			
		|||
			Type: exec.Trigger,
 | 
			
		||||
		},
 | 
			
		||||
		CreationTime: exec.StartTime,
 | 
			
		||||
		UpdateTime:   exec.EndTime,
 | 
			
		||||
		UpdateTime:   exec.UpdateTime,
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	return operation.NewGetPurgeJobOK().WithPayload(res.ToSwagger())
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue