Skip to content

Commit 86ed3da

Browse files
authored
Bugfix to track import
1 parent 91cc35c commit 86ed3da

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

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

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

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

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

0 commit comments

Comments
 (0)