Remove check

This commit is contained in:
Leandro Facchinetti 2020-04-08 19:32:25 -04:00
parent 5c8e096c5d
commit 718d380a1f
1 changed files with 0 additions and 20 deletions

View File

@ -1,20 +0,0 @@
import * as xmlbuilder2 from "xmlbuilder2";
import fs from "fs";
console.log("STARTED");
for (const feed of fs
.readdirSync("static/feeds")
.filter((file) => !file.startsWith("."))) {
try {
const xml: any = xmlbuilder2.convert(
fs.readFileSync(`static/feeds/${feed}`, "utf8"),
{ format: "object" }
);
if (xml?.feed?.updated === undefined)
throw new Error("Cant find xml.feed.updated");
console.log(`OK ${feed}`);
} catch (error) {
console.log(`ERROR ${feed}: ${error}`);
}
}
console.log("FINISHED");