Skip to content

Commit

Permalink
fix: remove created date in projection expressions for post overview …
Browse files Browse the repository at this point in the history
…func
  • Loading branch information
saiaunghlyanhtet committed Aug 28, 2024
1 parent 2ee37c5 commit 3846bee
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions pkg/post/post.go
Original file line number Diff line number Diff line change
Expand Up @@ -70,12 +70,11 @@ func GetAllPostsOverview(dynamodbClient dynamodbiface.DynamoDBAPI, tableName str
TableName: aws.String(tableName),
ProjectionExpression: aws.String("#id, #title, #author, #summary, #tags"),
ExpressionAttributeNames: map[string]*string{
"#id": aws.String("id"),
"#title": aws.String("title"),
"#author": aws.String("author"),
"#summary": aws.String("summary"),
"#tags": aws.String("tags"),
"#createdDate": aws.String("createdDate"),
"#id": aws.String("id"),
"#title": aws.String("title"),
"#author": aws.String("author"),
"#summary": aws.String("summary"),
"#tags": aws.String("tags"),
},
}

Expand Down

0 comments on commit 3846bee

Please sign in to comment.