Skip to content

Commit

Permalink
[fix] #241: 채팅 멤버 조회, 채팅방 조회 UseCase 반환 타입 옵셔널 지정
Browse files Browse the repository at this point in the history
  • Loading branch information
dev-muuu committed May 24, 2023
1 parent 9155032 commit c61c517
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions Zatch/Domain/UseCase/Chat/GetChattingRoomListUseCase.swift
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import Foundation
import RxSwift

protocol GetChattingRoomListUseCaseInterface {
func execute() -> Observable<[String]>
func execute() -> Observable<[String]?>
}

final class GetChattingRoomListUseCase: GetChattingRoomListUseCaseInterface {
Expand All @@ -20,7 +20,7 @@ final class GetChattingRoomListUseCase: GetChattingRoomListUseCaseInterface {
self.chatRepository = chatRepository
}

func execute() -> Observable<[String]> {
func execute() -> Observable<[String]?> {
return chatRepository.getChattingRooms()
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import Foundation
import RxSwift

protocol GetMemberListOfChattingUseCaseInterface {
func execute(roomId: String) -> Observable<[String]>
func execute(roomId: String) -> Observable<[String]?>
}

final class GetMemberListOfChattingUseCase: GetMemberListOfChattingUseCaseInterface {
Expand All @@ -20,7 +20,7 @@ final class GetMemberListOfChattingUseCase: GetMemberListOfChattingUseCaseInterf
self.chatRepository = chatRepository
}

func execute(roomId: String) -> Observable<[String]> {
func execute(roomId: String) -> Observable<[String]?> {
return chatRepository.getChattingMembers(roomId: roomId)
}
}

0 comments on commit c61c517

Please sign in to comment.