Only send one notification per vault import and purge, improve move ciphers functions

This commit is contained in:
Daniel García
2019-01-28 00:39:14 +01:00
parent f935f5cf46
commit bef1183c49
5 changed files with 83 additions and 83 deletions

View File

@@ -172,12 +172,14 @@ impl User {
.map_res("Error deleting user")
}
pub fn update_uuid_revision(uuid: &str, conn: &DbConn) {
pub fn update_uuid_revision(uuid: &str, conn: &DbConn) -> Vec<String> {
if let Some(mut user) = User::find_by_uuid(&uuid, conn) {
if user.update_revision(conn).is_err() {
warn!("Failed to update revision for {}", user.email);
};
};
vec![uuid.to_string()]
}
pub fn update_revision(&mut self, conn: &DbConn) -> EmptyResult {