1
0
mirror of https://github.com/mxpv/podsync.git synced 2024-05-11 05:55:04 +00:00

Fix TTL updates

This commit is contained in:
Maksym Pavlenko
2018-12-08 19:01:02 -08:00
parent 71084f5971
commit 91397fc893

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)