Even on error the last import timestamp should be set to the previous timestamp

This commit is contained in:
Philipp Wolfer 2023-12-09 18:41:53 +01:00
parent b07c393a22
commit 2307e6247b
No known key found for this signature in database
GPG key ID: 8FDF744D4919943B

View file

@ -120,6 +120,9 @@ func (c *TransferCmd[E, I, R]) Transfer(exp backends.ExportProcessor[R], imp bac
resultChan := make(chan models.ImportResult)
go imp.Process(exportChan, resultChan, importProgress)
result := <-resultChan
if result.LastTimestamp.Unix() < timestamp.Unix() {
result.LastTimestamp = timestamp
}
close(exportProgress)
wg.Wait()
progress.Wait()