From 43dc40b557dc1b57aa8274425b3a65e78db63077 Mon Sep 17 00:00:00 2001 From: Tomofumi Chiba Date: Sat, 14 Oct 2023 09:05:29 +0900 Subject: [PATCH] fix --- routes/_middleware.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/routes/_middleware.ts b/routes/_middleware.ts index 88ec070..e162d1d 100644 --- a/routes/_middleware.ts +++ b/routes/_middleware.ts @@ -30,11 +30,11 @@ export async function handler( `${baseUrl}/users/${user.user_id}${ new Date(user.updated_at).toISOString() }` - ).join() + posts.map((post) => + ).join("") + posts.map((post) => `${baseUrl}/posts/${post.id}${ new Date(post.updated_at).toISOString() }` - ) + ).join("") }`, { headers: { "content-type": 'application/xml; charset="UTF-8"' },