From 93708d4e402901635c6f8b6d59bc1fa607dd99ad Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Wed, 1 Apr 2020 17:02:52 +0200 Subject: [PATCH] Fix sitemap --- server/controllers/bots.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/controllers/bots.ts b/server/controllers/bots.ts index 541b40e8e..8d1fa72f3 100644 --- a/server/controllers/bots.ts +++ b/server/controllers/bots.ts @@ -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() -- 2.25.1