give lamassu support 2 full days of logs; log sharing last for 1 week

This commit is contained in:
Josh Harvey 2017-12-15 02:21:59 +02:00
parent dc2f4e497f
commit 783b85ed72
3 changed files with 22 additions and 18 deletions

View file

@ -41,7 +41,7 @@ app.get('/api/support_logs/logs', (req, res, next) => {
.then(log => (!_.isNil(log) && !_.isEmpty(log)) ? log : supportLogs.batch().then(_.first))
.then(result => {
const log = result || {}
return logs.getMachineLogs(log.deviceId, log.timestamp)
return logs.getUnlimitedMachineLogs(log.deviceId, log.timestamp)
})
.then(r => res.send(r))
.catch(next)