Save messages after check
This commit is contained in:
parent
3aea125ecb
commit
422ebd0703
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "rss-telegram-bot",
|
||||
"version": "1.0.7",
|
||||
"version": "1.0.8",
|
||||
"main": "lib/index.js",
|
||||
"author": "Fabian Stamm <dev@fabianstamm.de>",
|
||||
"license": "MIT",
|
||||
|
@ -218,7 +218,9 @@ Promise.resolve().then(async () => {
|
||||
}
|
||||
|
||||
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(() => {
|
||||
|
Loading…
Reference in New Issue
Block a user