Skip to content

Commit 97e342c

Browse files
committed
♻️ fix import
1 parent 611bce9 commit 97e342c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

backend/src/application/commands/create_profile.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
use crate::application::dtos::profile_dtos::{CreateProfileRequest, ProfileResponse};
2+
use crate::domain::entities::profile::Profile;
23
use crate::domain::repositories::profile_repository::ProfileRepository;
34
use crate::domain::value_objects::wallet_address::WalletAddress;
45
use std::sync::Arc;
@@ -20,7 +21,7 @@ pub async fn create_profile(
2021
return Err("Profile already exists for this user".to_string());
2122
}
2223

23-
let mut profile = crate::domain::entities::profile::Profile::new(wallet_address.clone());
24+
let mut profile = Profile::new(wallet_address.clone());
2425
profile.update_info(Some(request.name), request.description, request.avatar_url);
2526

2627
profile_repository

0 commit comments

Comments
 (0)