Fix incorrect message counter
| @@ -615,7 +615,7 @@ router.post('/search', jsonParser, function (request, response) { | ||
| 615 | 615 | const data = fs.readFileSync(chatFile.path, 'utf8'); |
| 616 | 616 | const messages = data.split('\n') |
| 617 | 617 | .map(line => { try { return JSON.parse(line); } catch (_) { return null; } }) |
| 618 | 618 | .filter(x => x && typeof x.mes === 'string'); |
| 619 | 619 | |
| 620 | 620 | if (messages.length === 0) { |
| 621 | 621 | continue; |