Skip to content

Commit

Permalink
Add timestamp
Browse files Browse the repository at this point in the history
vegarsti committed Apr 4, 2024
1 parent a13e855 commit 9135fb2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions dynamodb/dynamodb.go
Original file line number Diff line number Diff line change
@@ -2,6 +2,7 @@ package dynamodb

import (
"fmt"
"time"

"github.com/aws/aws-sdk-go/aws"
"github.com/aws/aws-sdk-go/aws/session"
@@ -47,6 +48,7 @@ func PutTable(checksum string, table []byte, boxesJSON []byte) error {
// "JSONTable": {B: table},
"JSONTableCustomDetection": {B: table},
"JSONBoxes": {B: boxesJSON},
"Timestamp": {S: aws.String(time.Now().Format(time.RFC3339))},
},
TableName: aws.String("Tables"),
}

0 comments on commit 9135fb2

Please sign in to comment.