fix backwards returns in ugpt /history

This commit is contained in:
zkldi
2021-07-24 04:10:15 +01:00
parent f860b154da
commit 671590127d
@@ -131,7 +131,7 @@ router.get("/history", async (req, res) => {
return res.status(200).json({
success: true,
description: `Successfully returned history for the past ${snapshots.length} days.`,
body: [...snapshots, currentSnapshot],
body: [currentSnapshot, ...snapshots],
});
});