This commit is contained in:
Leandro Facchinetti 2020-03-19 11:23:19 -04:00
parent d718430afe
commit b10b3af881
2 changed files with 2 additions and 2 deletions

View File

@ -64,7 +64,7 @@ export const emailServer = new SMTPServer({
});
for (const path of paths) {
const xml = await new xml2js.Parser().parseStringPromise(
fs.readFileSync(path).toString()
fs.readFileSync(path, "utf8")
);
xml.feed.updated = now();
if (xml.feed.entry === undefined) xml.feed.entry = [];

View File

@ -72,5 +72,5 @@ async function createFeed(): Promise<string> {
}
function readFeed(token: string): string {
return fs.readFileSync(feedPath(token)).toString();
return fs.readFileSync(feedPath(token), "utf8");
}