mirror of
https://github.com/dani-garcia/vaultwarden.git
synced 2025-06-20 18:30:08 +00:00
Fix some nightly build errors (#4657)
This commit is contained in:
parent
55fdee3bf8
commit
9082e7cebb
3 changed files with 9 additions and 2 deletions
|
@ -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,
|
||||
)
|
||||
|
|
|
@ -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))
|
||||
))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue