remove unused broadcast field
parent
c12759d785
commit
10c734c99a
|
@ -145,8 +145,9 @@ final class RelayRound(
|
|||
scoped = _ =>
|
||||
me =>
|
||||
env.relay.api.byIdAndContributor(id, me) map {
|
||||
case None => NotFound(jsonError("No such broadcast"))
|
||||
case Some(rt) => JsonOk(env.relay.jsonView.withUrl(rt))
|
||||
_ ?? { rt =>
|
||||
JsonOk(env.relay.jsonView.withUrl(rt))
|
||||
}
|
||||
}
|
||||
)
|
||||
|
||||
|
|
|
@ -20,7 +20,6 @@ final class JsonView(baseUrl: BaseUrl, markup: RelayMarkup) {
|
|||
"slug" -> trs.tour.slug,
|
||||
"description" -> trs.tour.description
|
||||
)
|
||||
.add("credit", trs.tour.credit)
|
||||
.add("markup" -> trs.tour.markup.map(markup.apply))
|
||||
.add("url" -> withUrls.option(s"$baseUrl/broadcast/${trs.tour.slug}/${trs.tour.id}")),
|
||||
"rounds" -> trs.rounds.map { round =>
|
||||
|
|
|
@ -9,7 +9,6 @@ case class RelayTour(
|
|||
name: String,
|
||||
description: String,
|
||||
markup: Option[String] = None,
|
||||
credit: Option[String] = None,
|
||||
ownerId: User.ID,
|
||||
createdAt: DateTime,
|
||||
official: Boolean,
|
||||
|
|
Loading…
Reference in New Issue