Release 1.5.3

This commit is contained in:
2026-07-25 15:11:41 +01:00
parent 9ee938fd2f
commit 0e89892c94
89 changed files with 7660 additions and 542 deletions
+13
View File
@@ -1,5 +1,6 @@
const http = require('http');
const https = require('https');
const { fetchPagedRows } = require('./utils');
function normalizeUpdateIntervalUnit(value) {
const unit = String(value || '').trim().toLowerCase();
@@ -14,6 +15,17 @@ async function fetchRssFeedsData(pool) {
return { rssFeeds: rssFeeds };
}
async function fetchRssFeedsPage(pool, page, pageSize) {
const paged = await fetchPagedRows(pool, {
selectSql: 'SELECT id, name, feed_url, update_interval_value, update_interval_unit, item_limit, created_at, modified_at, created_by, modified_by FROM rss_feeds ORDER BY modified_at DESC, id DESC',
countSql: 'SELECT COUNT(*) AS count FROM rss_feeds',
page: page,
pageSize: pageSize
});
return Object.assign({ rssFeeds: paged.rows }, paged);
}
async function fetchRssFeedById(pool, id) {
const [rows] = await pool.query(
'SELECT id, name, feed_url, update_interval_value, update_interval_unit, item_limit, created_at, modified_at, created_by, modified_by FROM rss_feeds WHERE id = ?',
@@ -285,6 +297,7 @@ function buildRssFeedPayload(req, existingRssFeed) {
module.exports = {
fetchRssFeedsData,
fetchRssFeedsPage,
fetchRssFeedById,
fetchRssFeedItemsByFeedId,
normalizeRssFeedItem,