The purge job update time is wrong (#16943)

Signed-off-by: stonezdj <stonezdj@gmail.com>
This commit is contained in:
stonezdj(Daojun Zhang) 2022-06-08 16:18:44 +08:00 committed by GitHub
parent 5dcd2ccf8e
commit a5d79a859c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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())