mirror of
https://github.com/vale981/doccam-pi
synced 2025-03-04 17:01:40 -05:00
fix
This commit is contained in:
parent
98aa84cdc7
commit
917c9a0bde
1 changed files with 2 additions and 1 deletions
3
main.js
3
main.js
|
@ -41,6 +41,7 @@ let logger = new(winston.Logger)({
|
|||
filename: __dirname + '/process.log',
|
||||
colorize: true,
|
||||
timestamp: true,
|
||||
level: 'success',
|
||||
json: true,
|
||||
maxsize: 500000,
|
||||
maxFiles: 10
|
||||
|
@ -331,7 +332,7 @@ var commandHandlers = function commandHandlers(command, cb) {
|
|||
if (err) {
|
||||
data = [];
|
||||
} else
|
||||
if (data.length === 1)
|
||||
if (data.length === 0)
|
||||
data = [];
|
||||
socket.emit('data', {
|
||||
type: 'logs',
|
||||
|
|
Loading…
Add table
Reference in a new issue