mirror of
https://github.com/TheAnachronism/docspell.git
synced 2025-06-22 02:18:26 +00:00
ScalafmtAll
This commit is contained in:
@ -35,7 +35,6 @@ object SolrUpdate {
|
||||
.withQueryParam("overwrite", "true")
|
||||
.withQueryParam("wt", "json")
|
||||
|
||||
|
||||
def add(tds: List[TextData]): F[Unit] = {
|
||||
val req = Method.POST(tds.asJson, url)
|
||||
client.expect[String](req).map(r => logger.debug(s"Req: $req Response: $r"))
|
||||
@ -59,16 +58,16 @@ object SolrUpdate {
|
||||
td.name.isDefined || td.notes.isDefined
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
case class Delete(query: String)
|
||||
object Delete {
|
||||
implicit val jsonEncoder: Encoder[Delete] =
|
||||
new Encoder[Delete] {
|
||||
def apply(d: Delete): Json =
|
||||
Json.obj(
|
||||
("delete", Json.obj("query" -> d.query.asJson))
|
||||
)
|
||||
}
|
||||
}
|
||||
case class Delete(query: String)
|
||||
object Delete {
|
||||
implicit val jsonEncoder: Encoder[Delete] =
|
||||
new Encoder[Delete] {
|
||||
def apply(d: Delete): Json =
|
||||
Json.obj(
|
||||
("delete", Json.obj("query" -> d.query.asJson))
|
||||
)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user