Fixed some clippy lints and changed update_uuid_revision to only use one db query

This commit is contained in:
Daniel García
2019-02-08 18:45:07 +01:00
parent ef63342e20
commit 8b4a6f2a64
8 changed files with 32 additions and 27 deletions

View File

@@ -86,8 +86,8 @@ pub fn send_invite(
"email/send_org_invite",
json!({
"url": CONFIG.domain(),
"org_id": org_id.unwrap_or("_".to_string()),
"org_user_id": org_user_id.unwrap_or("_".to_string()),
"org_id": org_id.unwrap_or_else(|| "_".to_string()),
"org_user_id": org_user_id.unwrap_or_else(|| "_".to_string()),
"email": address,
"org_name": org_name,
"token": invite_token,