Skip to content

Commit 31608d6

Browse files
committed
Bugfix to track import
1 parent 30545b1 commit 31608d6

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

mGAP/src/org/labkey/mgap/pipeline/GenerateMgapTracksStep.java

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -250,13 +250,15 @@ private void createOrUpdateTrack(SequenceOutputFile so, PipelineJob job, String
250250
}
251251
else
252252
{
253-
job.getLogger().debug("Updating existing track: " + so.getName());
253+
int rowId = ts.getObject(Integer.class)
254+
job.getLogger().debug("Updating existing track: " + so.getName() + " / " + rowId);
255+
254256
Map<String, Object> toUpdate = new CaseInsensitiveHashMap<>();
255-
toUpdate.put("rowId", ts.getObject(Integer.class));
257+
toUpdate.put("rowId", rowId);
256258
toUpdate.put("vcfId", so.getRowid());
257259

258260
Map<String, Object> oldKeys = new CaseInsensitiveHashMap<>();
259-
toUpdate.put("rowId", ts.getObject(Integer.class));
261+
oldKeys.put("rowId", rowId);
260262

261263
releaseTracks.getUpdateService().updateRows(job.getUser(), targetContainer, Arrays.asList(toUpdate), Arrays.asList(oldKeys), null, null);
262264
}

0 commit comments

Comments
 (0)