From 3846bee2f95f65827a92cf10e8ec0740dc0966ca Mon Sep 17 00:00:00 2001 From: saiaunghlyanhtet Date: Wed, 28 Aug 2024 16:37:31 +0630 Subject: [PATCH] fix: remove created date in projection expressions for post overview func --- pkg/post/post.go | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/pkg/post/post.go b/pkg/post/post.go index 7afcd8b..5b2ce46 100644 --- a/pkg/post/post.go +++ b/pkg/post/post.go @@ -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"), }, }