From dd70fe549447e6cc0cf2f2e6815115752faa1bdb Mon Sep 17 00:00:00 2001 From: Last2014 Date: Wed, 2 Jul 2025 16:42:06 +0900 Subject: [PATCH] =?UTF-8?q?=E6=96=87=E5=AD=97=E5=88=97=E3=82=92=E5=8F=82?= =?UTF-8?q?=E7=85=A7=E3=81=97=E3=81=A6=E3=81=84=E3=81=9F=E5=95=8F=E9=A1=8C?= =?UTF-8?q?=E3=82=92=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- scripts/earthquakeNotice.ts | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/scripts/earthquakeNotice.ts b/scripts/earthquakeNotice.ts index c8dda05..0949f9a 100644 --- a/scripts/earthquakeNotice.ts +++ b/scripts/earthquakeNotice.ts @@ -274,12 +274,11 @@ async function event(earthquakeInfo: any): Promise { if (earthquakeInfo.points !== null) { const areaNames: Array = Array.from( new Set( - earthquakeInfo.points.map((i: any) => { - return earthquakeInfo.points[i.addr]; - }).filter(Boolean) + earthquakeInfo.points + .map((point: any) => point.addr) + .filter(Boolean) ), ); - areas = `対象地域:${areaNames.join("・")}`; }