From 1f89d3d4386d7b83e38c6f3733fff95aec1ab0b3 Mon Sep 17 00:00:00 2001 From: andreagerino Date: Thu, 7 Apr 2016 18:56:35 +0200 Subject: [PATCH] Fixing get timestamp container --- routes/storage.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/routes/storage.js b/routes/storage.js index fc2cea9..6c40472 100644 --- a/routes/storage.js +++ b/routes/storage.js @@ -96,7 +96,7 @@ router.post('/', function(req, res, next){ function getTimestampContainer(arg){ - if(arg['timestamp']!=undefined&&(arg['timestamp']['utc']!=undefined)||arg['timestamp']['user']!=undefined) + if(arg['timestamp']!=undefined&&(arg['timestamp']['utc']!=undefined||arg['timestamp']['user']!=undefined)) return arg['timestamp']; return undefined; -- 2.18.1