Skip to content

Commit

Permalink
Fix db field first char not lowercase
Browse files Browse the repository at this point in the history
Tracked by #25 (comment)
  • Loading branch information
rivernews committed Sep 29, 2022
1 parent 6ad69b6 commit c24ba2d
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions lambda_golang/pkg/newssite/media_table.go
Original file line number Diff line number Diff line change
Expand Up @@ -100,9 +100,9 @@ func GetEventLandingStoriesFetched(landingPageS3Key string) MediaTableItemEvent
}

type MediaTableItemEvent struct {
EventName EventName `json:"eventName"`
Detail string `json:"detail"`
EventTime string `json:"eventTime"`
EventName EventName `dynamodbav:"eventName" json:"eventName"`
Detail string `dynamodbav:"detail" json:"detail"`
EventTime string `dynamodbav:"eventTime" json:"eventTime"`
}

type DocType string
Expand All @@ -120,12 +120,12 @@ const (
)

type MediaTableItem struct {
Uuid string `json:"uuid,omitempty"`
CreatedAt string `json:"createdAt,omitempty"`
S3Key string `json:"s3Key"`
DocType DocType `json:"docType"`
Events []MediaTableItemEvent `json:"events"`
IsDocTypeWaitingForMetadata DocType `json:"isDocTypeWaitingForMetadata,omitempty"`
Uuid string `dynamodbav:"uuid,omitempty" json:"uuid,omitempty"`
CreatedAt string `dynamodbav:"createdAt,omitempty" json:"createdAt,omitempty"`
S3Key string `dynamodbav:"s3Key" json:"s3Key"`
DocType DocType `dynamodbav:"docType" json:"docType"`
Events []MediaTableItemEvent `dynamodbav:"events" json:"events"`
IsDocTypeWaitingForMetadata DocType `dynamodbav:"isDocTypeWaitingForMetadata,omitempty" json:"isDocTypeWaitingForMetadata,omitempty"`
}

func DynamoDBQueryByS3Key(ctx context.Context, s3Key string) *[]MediaTableItem {
Expand Down

0 comments on commit c24ba2d

Please sign in to comment.