delete room

This commit is contained in:
Peter Maquiran
2024-06-12 11:56:21 +01:00
parent 295fe96da6
commit 4f348e0bf7
2 changed files with 31 additions and 3 deletions
@@ -101,6 +101,19 @@ export class RoomRepositoryService {
return result
}
@captureAndReraiseAsync('RoomRepositoryService/deleteRoomById')
async deleteRoomById(id: RoomByIdInputDTO) {
const result = await this.roomRemoteDataSourceService.deleteRoom(id)
if(result.isOk()) {
return await this.roomLocalDataSourceService.deleteRoomById(id)
}
return result
}
@captureAndReraiseAsync('RoomRepositoryService/create')
async create(data: RoomInputDTO) {