Skip to content

Commit

Permalink
print order
Browse files Browse the repository at this point in the history
  • Loading branch information
ledyba committed Jan 13, 2025
1 parent 72c3f0c commit 572a48b
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions server/src/cmd/sanity-check.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,9 @@ async function main() {
console.log();
try {
console.log('[Checking all moments...]')
const map = new Map<string, Set<string>>();
for await(let entity of shelf.enumurateAllEntities()) {
const files = await shelf.resolveFilepaths(entity);
const map = new Map<string, Set<string>>();
for (const file of files) {
try {
await fs.lstat(file);
Expand All @@ -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();
Expand Down

0 comments on commit 572a48b

Please sign in to comment.