Skip to content

Commit

Permalink
#21 Put success in right place
Browse files Browse the repository at this point in the history
  • Loading branch information
To-om committed May 7, 2017
1 parent 2ba3ff8 commit cf7d733
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions app/models/JsonFormat.scala
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,9 @@ object JsonFormat {
val reportWrites: Writes[Report] = Writes[Report] {
case SuccessReport(artifacts, full, summary) Json.obj(
"artifacts" artifacts,
"full" (full + ("success" JsBoolean(true))),
"summary" (summary + ("success" JsBoolean(true))))
"full" full,
"summary" summary,
"success" true)
case FailureReport(message) Json.obj(
"errorMessage" message,
"success" false)
Expand Down

0 comments on commit cf7d733

Please sign in to comment.