2 Commits
1.0.6 ... 1.0.8

Author SHA1 Message Date
422ebd0703 Save messages after check
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/tag Build is passing
2023-04-13 01:59:47 +02:00
3aea125ecb Fix import bug temporarily
All checks were successful
continuous-integration/drone/tag Build is passing
continuous-integration/drone/push Build is passing
2023-04-13 01:49:30 +02:00
2 changed files with 6 additions and 3 deletions

View File

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

View File

@ -2,7 +2,7 @@
// require('ssl-root-cas').inject();
process.env.NODE_TLS_REJECT_UNAUTHORIZED = "0";
import Logging from "@hibas123/nodelogging";
import * as _Logging from "@hibas123/nodelogging";
import { createHash } from "crypto";
import * as dotenv from "dotenv";
import { decode } from "html-entities";
@ -14,6 +14,7 @@ import { message } from "telegraf/filters";
import * as fs from "fs";
import lodash from 'lodash'
const Logging = (_Logging.default as any).default as typeof _Logging.default;
Promise.resolve().then(async () => {
const { Low, LowSync } = await import("lowdb");
@ -217,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(() => {