Skip to content

Commit

Permalink
HOTFIX remove conflicts (#631)
Browse files Browse the repository at this point in the history
  • Loading branch information
Legervad authored Dec 24, 2023
1 parent a7029ad commit f4d4a11
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 8 deletions.
Original file line number Diff line number Diff line change
@@ -1,12 +1,7 @@
package com.gamelounge.backend.model.DTO

class UserGameRatingDTO (
var user: UserDTO,
var game: GameDTO,
var rating: Int
)

data class UserGameRatingDTO(
var user: UserDTO,
var gameDTO: GameDTO,
var score: Int
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ data class GetUserInfoResponse(
val profilePicture: String? = null,
val about: String? = null,
val isAdmin: Boolean = false,
val isVisible: Boolean = false,
val isDeleted: Boolean = false,
val tags: List<TagDTO>? = null,
val title: String? = null,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,7 @@ class UserService(
user.profilePicture,
user.about,
user.isAdmin,
user.isDeleted,
convertBulkToTagDTO(user.tags),
user.title,
user.company,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,7 @@ object ConverterDTO {

fun converToUserGameRatingDTO(userGameRating: UserGameRating): UserGameRatingDTO{
return UserGameRatingDTO(
convertToUserDTO(userGameRating.user),
convertToGameDTO(userGameRating.game),
userGameRating.score
)
Expand Down Expand Up @@ -184,4 +185,4 @@ object ConverterDTO {
)
}
}
}

0 comments on commit f4d4a11

Please sign in to comment.