From 7f3646b31df4e423599f374e0112e044f54a16bd Mon Sep 17 00:00:00 2001 From: Stuart McHattie Date: Mon, 13 Jan 2025 18:17:06 +0000 Subject: [PATCH] Use V2 for the parents in pooled_tubes_from_whole_plates --- app/models/labware_creators/pooled_tubes_from_whole_plates.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/models/labware_creators/pooled_tubes_from_whole_plates.rb b/app/models/labware_creators/pooled_tubes_from_whole_plates.rb index c85109668..a202acc70 100644 --- a/app/models/labware_creators/pooled_tubes_from_whole_plates.rb +++ b/app/models/labware_creators/pooled_tubes_from_whole_plates.rb @@ -50,8 +50,7 @@ def available_plates end def parents - @parents ||= - api.search.find(Settings.searches['Find assets by barcode']).all(Limber::BarcodedAsset, barcode: barcodes) + @parents ||= Sequencescape::API::V2::Labware.find(barcode: barcodes).all end def parents_suitable