chore: remove commented blocks
This commit is contained in:
parent
65d69ef0fd
commit
17a965a30b
|
|
@ -22,8 +22,7 @@ use database_entity::dto::{
|
|||
use mime::Mime;
|
||||
use serde_json::Value;
|
||||
use shared_entity::dto::workspace_dto::{
|
||||
BlobMetadata, CreateWorkspaceMember, WorkspaceMemberChangeset, WorkspaceMemberInvitation,
|
||||
WorkspaceSpaceUsage,
|
||||
BlobMetadata, WorkspaceMemberChangeset, WorkspaceMemberInvitation, WorkspaceSpaceUsage,
|
||||
};
|
||||
use shared_entity::response::AppResponseError;
|
||||
use std::collections::HashMap;
|
||||
|
|
@ -182,11 +181,6 @@ impl TestClient {
|
|||
) -> Result<(), AppResponseError> {
|
||||
let email = other_client.email().await;
|
||||
|
||||
// self
|
||||
// .api_client
|
||||
// .add_workspace_members(workspace_id, vec![CreateWorkspaceMember { email, role }])
|
||||
// .await
|
||||
|
||||
self
|
||||
.api_client
|
||||
.invite_workspace_members(
|
||||
|
|
@ -208,7 +202,7 @@ impl TestClient {
|
|||
|
||||
other_client
|
||||
.api_client
|
||||
.accept_workspace_invitation(&target_invitation.invite_id.to_string().as_str())
|
||||
.accept_workspace_invitation(target_invitation.invite_id.to_string().as_str())
|
||||
.await
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -634,7 +634,7 @@ impl Client {
|
|||
let resp = builder.send().await?;
|
||||
log_request_id(&resp);
|
||||
let res = AppResponse::<Vec<AFWorkspaceInvitation>>::from_response(resp).await?;
|
||||
Ok(res.into_data()?)
|
||||
res.into_data()
|
||||
}
|
||||
|
||||
pub async fn accept_workspace_invitation(
|
||||
|
|
|
|||
|
|
@ -175,17 +175,6 @@ pub struct AFSnapshotRow {
|
|||
pub workspace_id: Uuid,
|
||||
}
|
||||
|
||||
// #[derive(FromRow, Deserialize, Serialize)]
|
||||
// pub struct AFWorkspaceInvitation {
|
||||
// pub invite_id: Uuid,
|
||||
// pub workspace_id: Uuid,
|
||||
// pub workspace_name: Option<String>,
|
||||
// pub inviter_email: Option<String>,
|
||||
// pub inviter_name: Option<String>,
|
||||
// pub status: AFWorkspaceInvitationStatus,
|
||||
// pub updated_at: DateTime<Utc>,
|
||||
// }
|
||||
|
||||
#[derive(FromRow, Deserialize, Serialize)]
|
||||
pub struct AFWorkspaceInvitationMinimal {
|
||||
pub workspace_id: Uuid,
|
||||
|
|
|
|||
Loading…
Reference in New Issue