Added message deletion

This commit is contained in:
2023-05-04 20:51:36 +03:00
parent e129934aac
commit 89d3ea1bf7
6 changed files with 60 additions and 22 deletions

View File

@ -1,7 +1,7 @@
//! `SeaORM` Entity. Generated by sea-orm-codegen 0.11.2
use chacha20poly1305::{aead::Aead, AeadCore, ChaCha20Poly1305, KeyInit};
use futures::{Stream, StreamExt};
use futures::{Stream, TryStreamExt};
use pbkdf2::pbkdf2_hmac_array;
use rand::{rngs::OsRng, RngCore};
use sea_orm::{prelude::*, ActiveValue::Set, QuerySelect};
@ -99,8 +99,7 @@ impl Entity {
.filter(Column::UserId.eq(user_id))
.into_tuple()
.stream(db)
.await?
.map(|item| item.map_err(Into::into));
Ok(result)
.await?;
Ok(result.map_err(Into::into))
}
}