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