From cf7d733228e4f654c21ac104d6438344d69bbeeb Mon Sep 17 00:00:00 2001 From: To-om Date: Sun, 7 May 2017 14:17:21 +0200 Subject: [PATCH] #21 Put success in right place --- app/models/JsonFormat.scala | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/app/models/JsonFormat.scala b/app/models/JsonFormat.scala index e411bb82c..561544d3b 100644 --- a/app/models/JsonFormat.scala +++ b/app/models/JsonFormat.scala @@ -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)