proxy: use new datastore notify settings

This commit is contained in:
Dietmar Maurer
2020-11-04 11:27:57 +01:00
parent 6e545d0058
commit f47c1d3a2f
4 changed files with 55 additions and 8 deletions

View File

@ -75,7 +75,7 @@ pub fn do_sync_job(
let job_id = job.jobname().to_string();
let worker_type = job.jobtype().to_string();
let email = crate::server::lookup_user_email(auth_id.user());
let (email, notify) = crate::server::lookup_datastore_notify_settings(&sync_job.store);
let upid_str = WorkerTask::spawn(
&worker_type,
@ -126,7 +126,7 @@ pub fn do_sync_job(
}
if let Some(email) = email {
if let Err(err) = crate::server::send_sync_status(&email, &sync_job2, &result) {
if let Err(err) = crate::server::send_sync_status(&email, notify, &sync_job2, &result) {
eprintln!("send sync notification failed: {}", err);
}
}