Skip to content

Commit

Permalink
Snu Right/Left i ØkonomiRoutes for response object
Browse files Browse the repository at this point in the history
  • Loading branch information
hestad committed Jan 5, 2024
1 parent 3f57ca8 commit 801bea0
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@ fun Route.økonomiRoutes(
}
}.let {
Response(
success = it.filterIsInstance<Either.Left<ResponseSuccess>>().map { it.value },
failed = it.filterIsInstance<Either.Right<ResponseError>>().map { it.value },
success = it.filterIsInstance<Either.Right<ResponseSuccess>>().map { it.value },
failed = it.filterIsInstance<Either.Left<ResponseError>>().map { it.value },
)
}
call.svar(
Expand Down

0 comments on commit 801bea0

Please sign in to comment.