Fix attachments during key rotation, add individual attachment key

This commit is contained in:
Daniel García
2018-11-27 17:24:12 +01:00
parent f71f10eac6
commit 6364c05789
6 changed files with 89 additions and 35 deletions

View File

@@ -71,7 +71,6 @@ impl Device {
let time_now = Utc::now().naive_utc();
self.updated_at = time_now;
let orgowner: Vec<_> = orgs.iter().filter(|o| o.type_ == 0).map(|o| o.org_uuid.clone()).collect();
let orgadmin: Vec<_> = orgs.iter().filter(|o| o.type_ == 1).map(|o| o.org_uuid.clone()).collect();
let orguser: Vec<_> = orgs.iter().filter(|o| o.type_ == 2).map(|o| o.org_uuid.clone()).collect();