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

This commit is contained in:
Lewis Dale committed 2023-09-27 07:34:19 +01:00
1 parent a595c60c2e
commit 8be90f42a5
1 file changed
+2 -6
+2 -6
View File
@@ -100,12 +100,8 @@ const mapComment = comment => ({
module.exports = async () => { module.exports = async () => {
// const cache = new PostCache(); const cache = new PostCache();
// await cache.fetchLatest(); await cache.fetchLatest();
const cache = {
posts: []
}
return Object.values(cache.posts) return Object.values(cache.posts)
.sort(dateSort) .sort(dateSort)