updated friend field to be optional (frontend bug fix, not that I have
no friends)
This commit is contained in:
@@ -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,
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user