Remove unused function readPostsDelayed

master
Raymonzut 5 years ago
parent 1ed4ba3a4a
commit e8139ef878
No known key found for this signature in database
GPG Key ID: 97CF2D8BE2C69FC7
  1. 4
      server/routes/api/posts.js

@ -10,10 +10,6 @@ let posts = readPosts();
setInterval(() => posts = readPosts(), 1000 * 60 * 60) setInterval(() => posts = readPosts(), 1000 * 60 * 60)
function readPostsDelayed() {
return new Promise(setTimeout, 1000).then(posts = readPosts())
}
function readPosts() { function readPosts() {
console.warn("reading all posts") console.warn("reading all posts")
const files = fs.readdirSync(posts_dir) const files = fs.readdirSync(posts_dir)

Loading…
Cancel
Save