Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
chibat committed Oct 14, 2023
1 parent 87aa6db commit 43dc40b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions routes/_middleware.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,11 @@ export async function handler(
`<url><loc>${baseUrl}/users/${user.user_id}</loc><lastmod>${
new Date(user.updated_at).toISOString()
}</lastmod></url>`
).join() + posts.map((post) =>
).join("") + posts.map((post) =>
`<url><loc>${baseUrl}/posts/${post.id}</loc><lastmod>${
new Date(post.updated_at).toISOString()
}</lastmod></url>`
)
).join("")
}</urlset>`,
{
headers: { "content-type": 'application/xml; charset="UTF-8"' },
Expand Down

0 comments on commit 43dc40b

Please sign in to comment.