Fix sitemap

pull/2594/head
Chocobozzz 2020-04-01 17:02:52 +02:00
parent 45c6bcf312
commit 93708d4e40
No known key found for this signature in database
GPG Key ID: 583A612D890159BE
1 changed files with 2 additions and 2 deletions

View File

@ -35,8 +35,8 @@ async function getSitemap (req: express.Request, res: express.Response) {
const sitemapStream = new SitemapStream({ hostname: WEBSERVER.URL })
for (const url of urls) {
sitemapStream.write({ url })
for (const urlObj of urls) {
sitemapStream.write(urlObj)
}
sitemapStream.end()