aboutsummaryrefslogtreecommitdiff
path: root/src/db/models/send.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/db/models/send.rs')
-rw-r--r--src/db/models/send.rs11
1 files changed, 7 insertions, 4 deletions
diff --git a/src/db/models/send.rs b/src/db/models/send.rs
index 1fae40c8..05d366e4 100644
--- a/src/db/models/send.rs
+++ b/src/db/models/send.rs
@@ -232,15 +232,18 @@ impl Send {
}
}
- pub fn update_users_revision(&self, conn: &DbConn) {
- match &self.user_uuid {
- Some(user_uuid) => {
+ pub fn update_users_revision(&self, conn: &DbConn) -> Vec<String> {
+ let mut user_uuids = Vec::new();
+ match self.user_uuid {
+ Some(ref user_uuid) => {
User::update_uuid_revision(user_uuid, conn);
+ user_uuids.push(user_uuid.clone())
}
None => {
// Belongs to Organization, not implemented
}
- }
+ };
+ user_uuids
}
pub fn delete_all_by_user(user_uuid: &str, conn: &DbConn) -> EmptyResult {