Put those posts back where they came from or so help me

This commit is contained in:
Lewis Dale 2023-09-27 07:34:19 +01:00
parent a595c60c2e
commit 8be90f42a5

View File

@ -100,12 +100,8 @@ const mapComment = comment => ({
module.exports = async () => {
// const cache = new PostCache();
// await cache.fetchLatest();
const cache = {
posts: []
}
const cache = new PostCache();
await cache.fetchLatest();
return Object.values(cache.posts)
.sort(dateSort)