From 47b805790497d3fe292d4fe7caa9026ffe3f8786 Mon Sep 17 00:00:00 2001 From: Tyler Peryea Date: Mon, 4 Oct 2021 17:08:03 -0400 Subject: [PATCH] updated reindexing code again --- .../gsrs/module/substance/services/ReindexFromBackups.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gsrs-module-substances-core/src/main/java/gsrs/module/substance/services/ReindexFromBackups.java b/gsrs-module-substances-core/src/main/java/gsrs/module/substance/services/ReindexFromBackups.java index d1e212390..d23d733ca 100644 --- a/gsrs-module-substances-core/src/main/java/gsrs/module/substance/services/ReindexFromBackups.java +++ b/gsrs-module-substances-core/src/main/java/gsrs/module/substance/services/ReindexFromBackups.java @@ -85,7 +85,8 @@ public void execute(Object id, SchedulerPlugin.TaskListener l) throws IOExceptio eventPublisher.publishEvent(new BeginReindexEvent(reindexId, count)); - try(Stream stream = backupRepository.streamAll()){ +// try(Stream stream = backupRepository.streamAll()){ + try(Stream stream = backupRepository.findAll().stream()){ stream.forEach(be ->{ try {