From 701fa76b847e9913baf833ef944798f7f76a6cb3 Mon Sep 17 00:00:00 2001 From: Gunnar Velle Date: Tue, 28 May 2024 07:32:39 +0200 Subject: [PATCH] Only generate for programmes --- src/main/java/no/ndla/taxonomy/service/NodeService.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/no/ndla/taxonomy/service/NodeService.java b/src/main/java/no/ndla/taxonomy/service/NodeService.java index a2e1c9e7..a95210bf 100644 --- a/src/main/java/no/ndla/taxonomy/service/NodeService.java +++ b/src/main/java/no/ndla/taxonomy/service/NodeService.java @@ -506,7 +506,7 @@ private List buildAllContexts() { logger.info("Building contexts for all roots in schema"); var startTime = System.currentTimeMillis(); List rootNodes = nodeRepository.findByNodeType( - Optional.empty(), + Optional.of(List.of(NodeType.PROGRAMME)), Optional.empty(), Optional.empty(), Optional.empty(),