mirror of
https://github.com/R0m1k3/noteflow.git
synced 2026-10-23 07:08:17 +02:00
Fix: Affichage articles RSS du plus ancien au plus récent
- Backend : Remet ORDER BY DESC (récent en premier de la DB) - Frontend : Ajoute .reverse() pour inverser et afficher ancien en premier - Résultat : Articles affichés du plus ancien au plus récent Cette approche garantit que le tri fonctionne côté frontend indépendamment du cache backend.
This commit is contained in:
2 files changed
+3
-2
No files matched your search
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user