diff --git a/lambda/processFile/utils.js b/lambda/processFile/utils.js
index 9376096..42aeb05 100644
--- a/lambda/processFile/utils.js
+++ b/lambda/processFile/utils.js
@@ -173,7 +173,7 @@ function saveToDB (item, callback) {
'active': {
BOOL: (item.objectId && item.title) ? true : false
},
- 'modification_date': {
+ 'modificationDate': {
S: (new Date(Date.now())).toISOString()
}
};
diff --git a/lambda/templates/html-template.hbs b/lambda/templates/html-template.hbs
index df29ea3..7ee5b61 100644
--- a/lambda/templates/html-template.hbs
+++ b/lambda/templates/html-template.hbs
@@ -55,6 +55,7 @@
{{#if objectId}}{{objectId.S}}{{else}}missing{{/if}} |
{{#if title}}{{title.S}}{{else}}missing{{/if}} |
+ {{#if modificationDate}}{{modificationDate.S}}{{/if}} |
{{#if active.BOOL}}
Active
diff --git a/lambda/templates/json-template.hbs b/lambda/templates/json-template.hbs
index 2d89b56..eaa1918 100644
--- a/lambda/templates/json-template.hbs
+++ b/lambda/templates/json-template.hbs
@@ -5,7 +5,7 @@
"id": "{{objectId.S}}",
"path": "{{../bucket}}/{{id.S}}",
"active": {{active.BOOL}},
- "modification_date": "{{modification_date.S}}"
+ "modification_date": "{{modificationDate.S}}"
}{{#if @last}}{{else}},{{/if}}
{{/each}}
]
diff --git a/lambda/toggleStatus/index.js b/lambda/toggleStatus/index.js
index 3ca1cdb..577594d 100644
--- a/lambda/toggleStatus/index.js
+++ b/lambda/toggleStatus/index.js
@@ -8,7 +8,7 @@ module.exports.handler = function (event, context, callback) {
return dynamoDB.updateItem({
TableName: process.env.TABLE_NAME,
- UpdateExpression: 'SET active = :a, modification_date = :m',
+ UpdateExpression: 'SET active = :a, modificationDate = :m',
ExpressionAttributeValues: {
':a': {
BOOL: params.active === 'true'
|