aboutsummaryrefslogtreecommitdiff
path: root/src/db
diff options
context:
space:
mode:
authorDaniel GarcĂ­a <[email protected]>2024-06-20 09:35:52 +0200
committerGitHub <[email protected]>2024-06-20 09:35:52 +0200
commit9082e7cebb5b3c507f189f4438fd78ee1df1e6b2 (patch)
tree93fdf1be27e7f704e73dc0572f42aa8f02a7fd2d /src/db
parent55fdee3bf8f45ccc7a5a188ab17855ac9866a979 (diff)
downloadvaultwarden-9082e7cebb5b3c507f189f4438fd78ee1df1e6b2.tar.gz
vaultwarden-9082e7cebb5b3c507f189f4438fd78ee1df1e6b2.zip
Fix some nightly build errors (#4657)
Diffstat (limited to 'src/db')
-rw-r--r--src/db/models/attachment.rs2
-rw-r--r--src/db/models/collection.rs2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/db/models/attachment.rs b/src/db/models/attachment.rs
index f8eca72f..9e6fa78a 100644
--- a/src/db/models/attachment.rs
+++ b/src/db/models/attachment.rs
@@ -95,7 +95,7 @@ impl Attachment {
pub async fn delete(&self, conn: &mut DbConn) -> EmptyResult {
db_run! { conn: {
- crate::util::retry(
+ let _: () = crate::util::retry(
|| diesel::delete(attachments::table.filter(attachments::id.eq(&self.id))).execute(conn),
10,
)
diff --git a/src/db/models/collection.rs b/src/db/models/collection.rs
index ae70c76c..fc3c6e28 100644
--- a/src/db/models/collection.rs
+++ b/src/db/models/collection.rs
@@ -632,7 +632,7 @@ impl CollectionUser {
db_run! { conn: {
for user in collectionusers {
- diesel::delete(users_collections::table.filter(
+ let _: () = diesel::delete(users_collections::table.filter(
users_collections::user_uuid.eq(user_uuid)
.and(users_collections::collection_uuid.eq(user.collection_uuid))
))