Remove unused function readPostsDelayed
This commit is contained in:
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user