Added message deletion
This commit is contained in:
@ -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))
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user