tweak log update
This commit is contained in:
parent
26e1ae305e
commit
4425b21b3d
2 changed files with 6 additions and 4 deletions
|
|
@ -177,7 +177,7 @@ function getCustomerWithPhoneCode (req, res, next) {
|
|||
|
||||
function getLastSeen (req, res, next) {
|
||||
return logs.getLastSeen(req.deviceId)
|
||||
.then(timestamp => res.json({lastSeen: timestamp}))
|
||||
.then(r => res.json(r))
|
||||
.catch(next)
|
||||
}
|
||||
|
||||
|
|
@ -266,7 +266,9 @@ function authorize (req, res, next) {
|
|||
.catch(next)
|
||||
}
|
||||
|
||||
const skip = (req, res) => _.includes(req.path, ['/poll', '/state']) && res.statusCode === 200
|
||||
const skip = (req, res) => _.includes(req.path, ['/poll', '/state', '/logs']) &&
|
||||
res.statusCode === 200 &&
|
||||
req.method === 'GET'
|
||||
|
||||
const configRequiredRoutes = [
|
||||
'/poll',
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue