From 3d44dc00c41b19127fa255d9866f8d455e281f16 Mon Sep 17 00:00:00 2001 From: pfurio Date: Tue, 29 Oct 2024 16:27:17 +0100 Subject: [PATCH] catalog: add missing includes for migration, #TASK-5662 --- .../opencb/opencga/catalog/db/mongodb/FileMongoDBAdaptor.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/opencga-catalog/src/main/java/org/opencb/opencga/catalog/db/mongodb/FileMongoDBAdaptor.java b/opencga-catalog/src/main/java/org/opencb/opencga/catalog/db/mongodb/FileMongoDBAdaptor.java index 9bcd821405..34983c60b7 100644 --- a/opencga-catalog/src/main/java/org/opencb/opencga/catalog/db/mongodb/FileMongoDBAdaptor.java +++ b/opencga-catalog/src/main/java/org/opencb/opencga/catalog/db/mongodb/FileMongoDBAdaptor.java @@ -346,8 +346,8 @@ public void associateAlignmentFiles(long studyUid) throws CatalogException { Query query = new Query() .append(QueryParams.STUDY_UID.key(), studyUid) .append(QueryParams.FORMAT.key(), Arrays.asList(File.Format.BAM, File.Format.CRAM)); - QueryOptions options = new QueryOptions(QueryOptions.INCLUDE, Arrays.asList(QueryParams.PATH.key(), QueryParams.FORMAT.key(), - QueryParams.RELATED_FILES.key(), QueryParams.INTERNAL.key())); + QueryOptions options = new QueryOptions(QueryOptions.INCLUDE, Arrays.asList(QueryParams.UID.key(), QueryParams.PATH.key(), + QueryParams.FORMAT.key(), QueryParams.RELATED_FILES.key(), QueryParams.INTERNAL.key(), QueryParams.STUDY_UID.key())); try (DBIterator iterator = iterator(query, options)) { while (iterator.hasNext()) {