mirror of
https://github.com/Radiquum/photos.git
synced 2025-05-20 19:59:38 +05:00
remove old lines
This commit is contained in:
parent
f151acf4ad
commit
200b03ba92
2 changed files with 0 additions and 14 deletions
|
@ -116,13 +116,6 @@ if (
|
|||
items = JSON.parse(fs.readFileSync("data/items.json", "utf-8"));
|
||||
}
|
||||
|
||||
// const ordered = Object.keys(items)
|
||||
// .sort().reverse()
|
||||
// .reduce((obj, key) => {
|
||||
// obj[key] = items[key];
|
||||
// return obj;
|
||||
// }, {} as typeof items);
|
||||
|
||||
Object.keys(items).forEach((year) => {
|
||||
items[year].sort((a, b) => b.date - a.date);
|
||||
});
|
||||
|
@ -169,7 +162,3 @@ if (ENVIRONMENT == "dev") {
|
|||
}
|
||||
fs.writeFileSync("out/index.html", `<!DOCTYPE html />${html}`);
|
||||
log.info("Build finished!");
|
||||
|
||||
// console.log(await db.collection("images").count().get().then((snapshot) => {
|
||||
// return snapshot.data().count;
|
||||
// }));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue