remove unused broadcast field

pull/9190/head
Thibault Duplessis 2021-06-15 10:41:41 +02:00
parent c12759d785
commit 10c734c99a
3 changed files with 3 additions and 4 deletions

View File

@ -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))
}
}
)

View File

@ -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 =>

View File

@ -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,