Merge pull request #72 from R0m1k3/claude/update-rss-feeds-011CV6EZDsWAUqbRHZR1117Q

Fix: Affichage articles RSS du plus ancien au plus récent
This commit is contained in:
LogiFlow authored and GitHub committed 2025-11-13 18:46:05 +01:00
commit 03f2d2cb54
2 files changed
+3 -2

No files matched your search

+1 -1
View File
@@ -194,7 +194,7 @@ router.get('/articles', async (req, res) => {
}
query += `
ORDER BY a.pub_date ASC
ORDER BY a.pub_date DESC
LIMIT ?
`;
params.push(limit);
+2 -1
View File
@@ -185,7 +185,8 @@ const Index = () => {
try {
const articles = await RssService.getArticles(100);
if (Array.isArray(articles)) {
setRssArticles(articles);
// Inverser pour afficher les anciens articles en premier
setRssArticles([...articles].reverse());
}
} catch (error) {
console.error("Erreur lors du chargement des articles RSS:", error);