From 572a48b4ee26ee776153f24f52d3574e80b921a8 Mon Sep 17 00:00:00 2001 From: Kaede Fujisaki Date: Mon, 13 Jan 2025 12:08:41 +0000 Subject: [PATCH] print order --- server/src/cmd/sanity-check.ts | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/server/src/cmd/sanity-check.ts b/server/src/cmd/sanity-check.ts index c30a5c0..55da4ba 100644 --- a/server/src/cmd/sanity-check.ts +++ b/server/src/cmd/sanity-check.ts @@ -31,9 +31,9 @@ async function main() { console.log(); try { console.log('[Checking all moments...]') + const map = new Map>(); for await(let entity of shelf.enumurateAllEntities()) { const files = await shelf.resolveFilepaths(entity); - const map = new Map>(); for (const file of files) { try { await fs.lstat(file); @@ -52,11 +52,11 @@ async function main() { } } } - for (const [path, set] of map) { - console.log(`https://ura.hexe.net${path}`); - for (const id of set) { - console.log(` - ${id}`); - } + } + for (const [path, set] of map) { + console.log(`https://ura.hexe.net${path}`); + for (const id of set) { + console.log(` - ${id}`); } } console.log();