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

Fix expiration time field format

This commit is contained in:
Maksym Pavlenko
2018-12-09 14:48:22 -08:00
parent c4097bea88
commit 6e4def004d

View File

@@ -162,8 +162,8 @@ func (d Dynamo) GetFeed(hashID string) (*model.Feed, error) {
updateExpression, err := expr.
NewBuilder().
WithUpdate(expr.
Set(expr.Name("LastAccess"), expr.Value(now)).
Set(expr.Name("ExpirationTime"), expr.Value(now.Add(feedTimeToLive)))).
Set(expr.Name("LastAccess"), expr.Value(now.Unix())).
Set(expr.Name("ExpirationTime"), expr.Value(now.Add(feedTimeToLive).Unix()))).
Build()
if err != nil {