Updated import and export commands to work better

This commit is contained in:
2023-05-06 19:21:40 +03:00
parent fc76d7f65c
commit 8af4d0ab12
3 changed files with 41 additions and 34 deletions

View File

@ -96,7 +96,7 @@ impl Entity {
.filter(Column::UserId.eq(user_id))
.stream(db)
.await?;
Ok(result.map_err(Into::into))
Ok(result.err_into())
}
/// Gets a list of account names of a user
@ -113,7 +113,7 @@ impl Entity {
select = select.order_by_asc(Column::Name);
}
let result = select.into_tuple().stream(db).await?;
Ok(result.map_err(Into::into))
Ok(result.err_into())
}
pub async fn exists(