From dc879687a363d583bbdbf2facff72a3d3868496a Mon Sep 17 00:00:00 2001 From: Florent Bourcier <62593305+IGNFBourcier@users.noreply.github.com> Date: Thu, 12 Sep 2024 15:26:57 +0200 Subject: [PATCH] fix most recent FIMOCT finding, "published" no longer exists --- build/download-fimoct.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build/download-fimoct.js b/build/download-fimoct.js index 1a179fe..c9b88d2 100644 --- a/build/download-fimoct.js +++ b/build/download-fimoct.js @@ -19,7 +19,7 @@ function isFIMOCTArchive(resource) { } function getMostRecent(resources) { - return last(sortBy(resources, resource => new Date(resource.published))) + return last(sortBy(resources, resource => new Date(resource.last_modified))) } async function getLatestFIMOCTArchiveURL() {