This commit is contained in:
parent
d718430afe
commit
b10b3af881
|
@ -64,7 +64,7 @@ export const emailServer = new SMTPServer({
|
||||||
});
|
});
|
||||||
for (const path of paths) {
|
for (const path of paths) {
|
||||||
const xml = await new xml2js.Parser().parseStringPromise(
|
const xml = await new xml2js.Parser().parseStringPromise(
|
||||||
fs.readFileSync(path).toString()
|
fs.readFileSync(path, "utf8")
|
||||||
);
|
);
|
||||||
xml.feed.updated = now();
|
xml.feed.updated = now();
|
||||||
if (xml.feed.entry === undefined) xml.feed.entry = [];
|
if (xml.feed.entry === undefined) xml.feed.entry = [];
|
||||||
|
|
|
@ -72,5 +72,5 @@ async function createFeed(): Promise<string> {
|
||||||
}
|
}
|
||||||
|
|
||||||
function readFeed(token: string): string {
|
function readFeed(token: string): string {
|
||||||
return fs.readFileSync(feedPath(token)).toString();
|
return fs.readFileSync(feedPath(token), "utf8");
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue