updated friend field to be optional (frontend bug fix, not that I have

no friends)
This commit is contained in:
2026-02-17 21:37:15 +08:00
parent 8578ba3376
commit f1d03fc96a
4 changed files with 31 additions and 24 deletions

View File

@@ -18,7 +18,7 @@ pub struct UserBasicDto {
#[ts(export)]
pub struct FriendshipResponseDto {
pub id: String,
pub friend: UserBasicDto,
pub friend: Option<UserBasicDto>,
pub created_at: String,
}
@@ -39,4 +39,4 @@ pub struct FriendRequestResponseDto {
pub status: String,
pub created_at: String,
pub updated_at: String,
}
}