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:
parent
41b373eced
commit
18cc66ee85
|
@ -257,7 +257,7 @@ pub async fn pull_group(
|
||||||
|
|
||||||
let auth_info = client.login().await?;
|
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 {
|
for item in list {
|
||||||
let backup_time = Utc.timestamp(item.backup_time, 0);
|
let backup_time = Utc.timestamp(item.backup_time, 0);
|
||||||
|
|
Loading…
Reference in New Issue