File tree Expand file tree Collapse file tree
common-lib/src/main/scala Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -208,17 +208,6 @@ class Api(
208208 }
209209 }
210210
211- def putStubIntendedAudience (stubId : Long ) = {
212- APIAuthAction .async { request =>
213- ApiResponseFt [Long ](for {
214- json <- readJsonFromRequestResponse(request.body)
215- intendedAudience <- extractDataResponse[Option [String ]](json)
216- id <- stubsApi.updateIntendedAudience(stubId, intendedAudience)
217- } yield id
218- )
219- }
220- }
221-
222211 def putStubStatusByComposerId (composerId : String ) = {
223212 APIAuthAction .async { request =>
224213 ApiResponseFt [String ](for {
Original file line number Diff line number Diff line change @@ -214,13 +214,6 @@ class StubAPI(
214214 item <- extractDataResponse[Long ](json)
215215 } yield item
216216
217- def updateIntendedAudience (stubId : Long , updateIntendedAudience : Option [String ]): ApiResponseFt [Long ] =
218- for {
219- res <- ApiResponseFt .Async .Right (putRequest(s " stubs/ $stubId/intendedAudience " , updateIntendedAudience.asJson))
220- json <- parseBody(res.body)
221- item <- extractDataResponse[Long ](json)
222- } yield item
223-
224217 def updateContentStatusByComposerId (composerId : String , status : String ): ApiResponseFt [String ] =
225218 for {
226219 res <- ApiResponseFt .Async .Right (putRequest(s " content/ $composerId/status " , status.asJson))
Original file line number Diff line number Diff line change @@ -54,8 +54,7 @@ case class ExternalData(
5454 rightsDeveloperCommunity : Option [Boolean ] = None ,
5555 byline : Option [String ] = None ,
5656 displayHint : Option [String ] = None ,
57- trackingTags : Option [List [String ]] = None ,
58- intendedAudience : Option [String ] = None ) {
57+ trackingTags : Option [List [String ]] = None ) {
5958}
6059
6160object ExternalData {
Original file line number Diff line number Diff line change @@ -52,7 +52,6 @@ PUT /api/stubs/:stubId/plannedNewspaperPublicationDate controller
5252PUT /api/stubs/:stubId/rightsReviewed controllers.Api.putStubRightsReviewed(stubId: Long)
5353PUT /api/stubs/:stubId/commissionedLength controllers.Api.putStubCommissionedLength(stubId: Long)
5454PUT /api/stubs/:stubId/missingCommissionedLengthReason controllers.Api.putStubMissingCommissionedLengthReason(stubId: Long)
55- PUT /api/stubs/:stubId/intendedAudience controllers.Api.putStubIntendedAudience(stubId: Long)
5655DELETE /api/stubs/:stubId controllers.Api.deleteStub(stubId: Long)
5756
5857GET /api/statuses controllers.Api.statusus
Original file line number Diff line number Diff line change @@ -30,7 +30,6 @@ export type Stub = {
3030 prodOffice ?: string ;
3131 note ?: string ;
3232 displayHint ?: string ;
33- intendedAudience ?: string ;
3433} ;
3534
3635export type ListElementArticleFormat = {
You can’t perform that action at this time.
0 commit comments