Skip to content

Commit

Permalink
Merge pull request #107 from guardian/pf/add-all-fields-to-api
Browse files Browse the repository at this point in the history
Add more fields to JSON view in UI
  • Loading branch information
bryophyta authored Jan 22, 2025
2 parents 349633f + 5dd2075 commit 9ef36aa
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions newswires/app/db/FingerpostWireEntry.scala
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,10 @@ case class FingerpostWire(
language: Option[String],
usage: Option[String],
location: Option[String],
bodyText: Option[String],
ednote: Option[String]
ednote: Option[String],
mediaCatCodes: Option[String],
`abstract`: Option[String],
bodyText: Option[String]
)
object FingerpostWire {
// rename a couple of fields
Expand Down
2 changes: 1 addition & 1 deletion newswires/client/src/WireDetail.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ export const WireDetail = ({
<Fragment>
{isShowingJson ? (
<EuiCodeBlock language="json">
{JSON.stringify(wire.content, null, 2)}
{JSON.stringify(wire, null, 2)}
</EuiCodeBlock>
) : (
<>
Expand Down

0 comments on commit 9ef36aa

Please sign in to comment.