Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
rtyley committed Feb 6, 2024
1 parent ea88194 commit 2c3a5ba
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 11 deletions.
2 changes: 1 addition & 1 deletion app/util/UploadDecorator.scala
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import org.scanamo.syntax._
import org.scanamo.generic.auto._

class UploadDecorator(aws: DynamoAccess with UploadAccess, stepFunctions: StepFunctions) {
private val table = Table[Upload](cacheTableName)
private val table = Table[Upload](aws.cacheTableName)

def addMetadata(atomId: String, video: ClientAsset): ClientAsset = {
val id = s"$atomId-${video.id}"
Expand Down
1 change: 0 additions & 1 deletion common/src/main/scala/com/gu/media/Permissions.scala
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import com.amazonaws.auth.AWSCredentialsProvider
import com.gu.permissions._
import ai.x.play.json.Jsonx
import ai.x.play.json.Encoders._
import com.gu.media.Permissions.setVideosOnAllChannelsPublic
import play.api.libs.json.Format
import com.gu.pandomainauth.model.{User => PandaUser}
import com.gu.permissions.PermissionDefinition
Expand Down
4 changes: 2 additions & 2 deletions common/src/main/scala/com/gu/media/model/Asset.scala
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
package com.gu.media.model

import ai.x.play.json.Encoders.encoder
import com.gu.contentatom.thrift.atom.media.{Asset => ThriftAsset}
import ai.x.play.json.Jsonx
import play.api.libs.json.{Format, OFormat}
import com.gu.contentatom.thrift.atom.media.{Asset => ThriftAsset}
import play.api.libs.json.Format

case class Asset(assetType: AssetType,
version: Long,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
package com.gu.media.model

import ai.x.play.json.Encoders.encoder
import com.gu.contentatom.thrift.{ContentChangeDetails => ThriftContentChangeDetails}
import ai.x.play.json.Jsonx
import play.api.libs.json.{Format, OFormat}
import com.gu.contentatom.thrift.{ContentChangeDetails => ThriftContentChangeDetails}
import play.api.libs.json.Format

case class ContentChangeDetails(
lastModified: Option[ChangeRecord],
Expand Down
4 changes: 2 additions & 2 deletions common/src/main/scala/com/gu/media/model/Image.scala
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
package com.gu.media.model

import ai.x.play.json.Encoders.encoder
import com.gu.contentatom.thrift.{Image => ThriftImage, ImageAsset => ThriftImageAsset, ImageAssetDimensions => ThriftImageAssetDimensions}
import ai.x.play.json.Jsonx
import play.api.libs.json.{Format, OFormat}
import com.gu.contentatom.thrift.{Image => ThriftImage, ImageAsset => ThriftImageAsset, ImageAssetDimensions => ThriftImageAssetDimensions}
import play.api.libs.json.Format

case class ImageAssetDimensions(height: Int, width: Int) {
def asThrift = ThriftImageAssetDimensions(height, width)
Expand Down
6 changes: 3 additions & 3 deletions common/src/main/scala/com/gu/media/model/MediaAtom.scala
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
package com.gu.media.model

import ai.x.play.json.Encoders._
import ai.x.play.json.Jsonx
import com.gu.contentatom.thrift.atom.media.{MediaAtom => ThriftMediaAtom, Metadata => ThriftMetadata, YoutubeData => ThriftYoutubeData}
import play.api.libs.json.{Format, OFormat}
import com.gu.contentatom.thrift.{AtomData, Atom => ThriftAtom, AtomType => ThriftAtomType, Flags => ThriftFlags}
import com.gu.media.util.MediaAtomImplicits
import com.gu.media.youtube.{MediaAtomYoutubeDescriptionHandler, YoutubeDescription}
import ai.x.play.json.Jsonx
import ai.x.play.json.Encoders._
import play.api.libs.json.Format

abstract class MediaAtomBase {
//generic metadata
Expand Down

0 comments on commit 2c3a5ba

Please sign in to comment.