Fix TTL updates

This commit is contained in:
Maksym Pavlenko
2018-12-08 19:01:02 -08:00
parent 71084f5971
commit 91397fc893
+5 -3
View File
@@ -172,9 +172,11 @@ func (d Dynamo) GetFeed(hashID string) (*model.Feed, error) {
}
updateInput := &dynamodb.UpdateItemInput{
TableName: d.FeedsTableName,
Key: getInput.Key,
UpdateExpression: updateExpression.Update(),
TableName: d.FeedsTableName,
Key: getInput.Key,
UpdateExpression: updateExpression.Update(),
ExpressionAttributeNames: updateExpression.Names(),
ExpressionAttributeValues: updateExpression.Values(),
}
_, err = d.dynamo.UpdateItem(updateInput)