Save messages after check
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/tag Build is passing

This commit is contained in:
Fabian Stamm 2023-04-13 01:59:47 +02:00
parent 3aea125ecb
commit 422ebd0703
2 changed files with 4 additions and 2 deletions

View File

@ -1,6 +1,6 @@
{ {
"name": "rss-telegram-bot", "name": "rss-telegram-bot",
"version": "1.0.7", "version": "1.0.8",
"main": "lib/index.js", "main": "lib/index.js",
"author": "Fabian Stamm <dev@fabianstamm.de>", "author": "Fabian Stamm <dev@fabianstamm.de>",
"license": "MIT", "license": "MIT",

View File

@ -218,7 +218,9 @@ Promise.resolve().then(async () => {
} }
function checkAll() { function checkAll() {
Database.getAll().map(feed => checkFeed(feed).catch(err => Logging.error(err))); Database.getAll().map(feed => checkFeed(feed).catch(err => Logging.error(err)).finally(() => {
db.write();
}));
} }
setInterval(() => { setInterval(() => {