Skip to content

Commit

Permalink
fix backend formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Büßemeyer authored and Michael Büßemeyer committed Dec 9, 2024
1 parent 4f03707 commit 1981fbf
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions app/controllers/DatasetController.scala
Original file line number Diff line number Diff line change
Expand Up @@ -419,12 +419,17 @@ class DatasetController @Inject()(userService: UserService,
case Empty =>
for {
dataset <- datasetDAO.findOneByNameAndOrganization(datasetName, organizationId)(GlobalAccessContext)
isAccessibleResult <- authenticationController.accessibleBySwitching(Some(dataset._id.toString), None, None)(request)
isAccessibleResult <- authenticationController.accessibleBySwitching(Some(dataset._id.toString),
None,
None)(request)
result <- isAccessibleResult.header.status match {
case 200 => Fox.successful(Ok(Json.obj("id" -> dataset._id,
"name" -> dataset.name,
"organization" -> dataset._organization,
"directoryName" -> dataset.directoryName)))
case 200 =>
Fox.successful(
Ok(
Json.obj("id" -> dataset._id,
"name" -> dataset.name,
"organization" -> dataset._organization,
"directoryName" -> dataset.directoryName)))
case _ => Fox.failure(notFoundMessage(datasetName))
}
} yield result
Expand Down

0 comments on commit 1981fbf

Please sign in to comment.