From 273b3f2effc97dae9ed6a69c3ac830f0bdb27d0d Mon Sep 17 00:00:00 2001 From: Anders Nomerstad Date: Thu, 31 Oct 2024 18:09:45 +0100 Subject: [PATCH] Disable old new unpublish schedule/job --- src/main/resources/main.ts | 7 ++++--- src/main/resources/webapp/webapp.ts | 8 ++++---- 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/src/main/resources/main.ts b/src/main/resources/main.ts index 1f17e5e71..bd5428f8b 100644 --- a/src/main/resources/main.ts +++ b/src/main/resources/main.ts @@ -43,10 +43,11 @@ if (app.config.env !== 'test') { activateLayersEventListeners(); // TODO: reactivate these after running the big archive job -// activateCacheEventListeners(); -// activateContentListItemUnpublishedListener(); -// activateExternalSearchIndexEventHandlers(); +activateCacheEventListeners(); +activateContentListItemUnpublishedListener(); +activateExternalSearchIndexEventHandlers(); // activateArchiveNewsSchedule() + activateCustomPathNodeListeners(); activateContentUpdateListener(); activateSchedulerCleanupSchedule(); diff --git a/src/main/resources/webapp/webapp.ts b/src/main/resources/webapp/webapp.ts index 60c80fc71..8ff6cbdb7 100644 --- a/src/main/resources/webapp/webapp.ts +++ b/src/main/resources/webapp/webapp.ts @@ -48,10 +48,10 @@ const validActions: ActionsMap = { description: 'Fjern expired scheduler jobs (kjøres normalt automatisk hver morgen)', callback: runSchedulerCleanup, }, - oldNewsUnpublish: { - description: 'Avpubliser og arkiver gamle nyheter/pressemeldinger', - callback: archiveOldNews, - }, + // oldNewsUnpublish: { + // description: 'Avpubliser og arkiver gamle nyheter/pressemeldinger', + // callback: archiveOldNews, + // }, ...(!!URLS.SEARCH_API_URL && { updateAllSearchNodesExternal: { description: 'Oppdater alle dokumenter for eksternt søk',