Skip to content

Commit

Permalink
Clarify parser
Browse files Browse the repository at this point in the history
  • Loading branch information
malliina committed Oct 16, 2024
1 parent bc6c474 commit 2140dc5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pimpcloud/app/controllers/pimpcloud/Phones.scala
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ class Phones(comps: ControllerComponents, tags: CloudTags, phoneAuth: BaseSecuri

def ping = proxiedGetAction(Ping)

def pingAuth = executeProxied(parse.anyContent)(VersionKey, _ => Right(Json.obj())): (_, json) =>
def pingAuth = executeProxied(parse.ignore(()))(VersionKey, _ => Right(Json.obj())): (_, json) =>
json
.as[Version]
.fold(
Expand Down Expand Up @@ -226,7 +226,7 @@ class Phones(comps: ControllerComponents, tags: CloudTags, phoneAuth: BaseSecuri
cmd: String,
build: RequestHeader => Either[String, W]
)(toHtml: Json => Decoder.Result[C]) =
executeProxied(parse.anyContent)(cmd, build): (req, json) =>
executeProxied(parse.ignore(()))(cmd, build): (req, json) =>
pimpResult(req)(
html = toHtml(json).fold(
err => onGatewayParseErrorResult(err),
Expand Down

0 comments on commit 2140dc5

Please sign in to comment.