aboutsummaryrefslogtreecommitdiff
path: root/src/db/models/two_factor.rs
diff options
context:
space:
mode:
authorDaniel García <[email protected]>2024-06-20 20:54:41 +0200
committerDaniel García <[email protected]>2024-06-20 20:54:41 +0200
commit3fe72cafbcbd94b14b486ac3019b439f90deb2a1 (patch)
tree1e446026b5bb0e896144e7af280074321cf9791b /src/db/models/two_factor.rs
parent4988e3397461d2ea087fe22d08af5dcc29bed720 (diff)
parent8f05a90b96adfe06722d01510923759fe61a8bd6 (diff)
downloadvaultwarden-remove_upcase.tar.gz
vaultwarden-remove_upcase.zip
Merge branch 'main' into remove_upcaseremove_upcase
Diffstat (limited to 'src/db/models/two_factor.rs')
-rw-r--r--src/db/models/two_factor.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/db/models/two_factor.rs b/src/db/models/two_factor.rs
index 2120a0e2..9155c518 100644
--- a/src/db/models/two_factor.rs
+++ b/src/db/models/two_factor.rs
@@ -95,7 +95,7 @@ impl TwoFactor {
// We need to make sure we're not going to violate the unique constraint on user_uuid and atype.
// This happens automatically on other DBMS backends due to replace_into(). PostgreSQL does
// not support multiple constraints on ON CONFLICT clauses.
- diesel::delete(twofactor::table.filter(twofactor::user_uuid.eq(&self.user_uuid)).filter(twofactor::atype.eq(&self.atype)))
+ let _: () = diesel::delete(twofactor::table.filter(twofactor::user_uuid.eq(&self.user_uuid)).filter(twofactor::atype.eq(&self.atype)))
.execute(conn)
.map_res("Error deleting twofactor for insert")?;