Skip to content

Commit

Permalink
fix ttl
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidWells committed Mar 1, 2018
1 parent 8268756 commit 3c6693f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/lib/issueSave.js
Expand Up @@ -31,7 +31,7 @@ function saveClosedIssue(issue, callback) {
var oneMonthFromNow = new Date(Date.now() + (30 * 24 * 60 * 60 * 1000))
var issueWithTTL = issue
// add Dynamo TTL attribute to auto delete in 30 days
issueWithTTL.ttl = oneMonthFromNow.getTime();
issueWithTTL.ttl = Math.round(oneMonthFromNow.getTime() / 1000)

db.put({
TableName: CLOSED_ITEMS_TABLE,
Expand Down

0 comments on commit 3c6693f

Please sign in to comment.