Set otrs orphan behavior
This commit is contained in:
parent
5ba70c1e52
commit
bb3da2a7df
1 changed files with 2 additions and 1 deletions
|
@ -2,7 +2,7 @@ use task_hookrs::task::TaskBuilder;
|
||||||
use task_hookrs::cache::TaskCache;
|
use task_hookrs::cache::TaskCache;
|
||||||
|
|
||||||
use error::{Result, ResultExt};
|
use error::{Result, ResultExt};
|
||||||
use generate::{GeneratedTask, TaskGenerator};
|
use generate::{GeneratedTask, TaskGenerator, OrphanBehavior};
|
||||||
use reqwest::Client;
|
use reqwest::Client;
|
||||||
use config::{Config, Environment};
|
use config::{Config, Environment};
|
||||||
|
|
||||||
|
@ -165,6 +165,7 @@ pub fn sync_otrs(cache: &mut TaskCache) -> Result<()> {
|
||||||
.expect("TaskBuilding failed inspite of set description");
|
.expect("TaskBuilding failed inspite of set description");
|
||||||
t.set_gen_name(Some("cda-otrs"));
|
t.set_gen_name(Some("cda-otrs"));
|
||||||
t.set_gen_id(Some(ticket.number.to_string()));
|
t.set_gen_id(Some(ticket.number.to_string()));
|
||||||
|
t.set_gen_orphan(OrphanBehavior::CompleteOrphan);
|
||||||
t
|
t
|
||||||
});
|
});
|
||||||
cache.generate(tasks)?;
|
cache.generate(tasks)?;
|
||||||
|
|
Loading…
Reference in a new issue