src/api2/pull.rs: use new Datastore::last_successful_backup helper

Do not fail if local group does not exists.
This commit is contained in:
Dietmar Maurer 2020-01-22 15:06:28 +01:00
parent 41b373eced
commit 18cc66ee85
1 changed files with 1 additions and 1 deletions

View File

@ -257,7 +257,7 @@ pub async fn pull_group(
let auth_info = client.login().await?;
let last_sync = group.last_successful_backup(&tgt_store.base_path())?;
let last_sync = tgt_store.last_successful_backup(group)?;
for item in list {
let backup_time = Utc.timestamp(item.backup_time, 0);