diff --git a/routes/storage.js b/routes/storage.js index fc2cea9a743d004151ed51d51c04038ba6ae7df4..6c40472cc8241944456b20042d428a74ffb6e165 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;