Skip to content

Commit

Permalink
fix: structure returned by the updating favorite group API
Browse files Browse the repository at this point in the history
  • Loading branch information
makinosp committed Oct 7, 2024
1 parent 42afddd commit ad7cfbf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Sources/VRCKit/Services/FavoriteService.swift
Original file line number Diff line number Diff line change
Expand Up @@ -98,12 +98,12 @@ public final actor FavoriteService: APIService, FavoriteServiceProtocol {
/// - userId: The ID of the user associated with the favorite group.
/// - displayName: The new display name to update the favorite group with.
/// - visibility: The new visibility setting for the favorite group.
/// - Returns: A `SuccessResponse` if the update is successful.
/// - Returns: A `FavoriteGroup` if the update is successful.
public func updateFavoriteGroup(
source: FavoriteGroup,
displayName: String,
visibility: FavoriteGroup.Visibility
) async throws -> SuccessResponse {
) async throws -> FavoriteGroup {
let pathParams = ["favorite", "group", source.type.rawValue, source.name, source.ownerId]
let path = pathParams.joined(separator: "/")
let body = RequestToUpdateFavoriteGroup(displayName: displayName, visibility: visibility)
Expand Down

0 comments on commit ad7cfbf

Please sign in to comment.