From c676b2b3b774d332f9e303a873db5688de657352 Mon Sep 17 00:00:00 2001 From: Zach Smith Date: Fri, 3 Mar 2017 17:38:12 -0800 Subject: Marshal to string for unitResponse in RestService --- src/main/scala/xyz/driver/core/rest.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/main/scala') diff --git a/src/main/scala/xyz/driver/core/rest.scala b/src/main/scala/xyz/driver/core/rest.scala index 8ce2219..33e0f97 100644 --- a/src/main/scala/xyz/driver/core/rest.scala +++ b/src/main/scala/xyz/driver/core/rest.scala @@ -148,7 +148,7 @@ object rest { } protected def unitResponse(request: Future[Unmarshal[ResponseEntity]]): OptionT[Future, Unit] = - OptionT[Future, Unit](request.flatMap(_.to[JsValue]).map(_ => Option(()))) + OptionT[Future, Unit](request.flatMap(_.to[String]).map(_ => Option(()))) protected def optionalResponse[T](request: Future[Unmarshal[ResponseEntity]])( implicit um: Unmarshaller[ResponseEntity, Option[T]]): OptionT[Future, T] = -- cgit v1.2.3