Skip to content

Commit 3bc6524

Browse files
Fix wrong file name passed to handle
1 parent 8b7f7a0 commit 3bc6524

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

packages/apollo-collaboration-server/src/sequence/sequence.service.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -80,9 +80,9 @@ export class SequenceService {
8080

8181
if (!sequenceAdapter) {
8282
const fastaHandle = new RemoteFile(fa, { fetch })
83-
const faiHandle = new RemoteFile(fa, { fetch })
83+
const faiHandle = new RemoteFile(fai, { fetch })
8484
if (gzi) {
85-
const gziHandle = new RemoteFile(fa, { fetch })
85+
const gziHandle = new RemoteFile(gzi, { fetch })
8686
sequenceAdapter = new BgzipIndexedFasta({
8787
fasta: fastaHandle,
8888
fai: faiHandle,
@@ -95,7 +95,7 @@ export class SequenceService {
9595
} else {
9696
sequenceAdapter = new IndexedFasta({
9797
fasta: fastaHandle,
98-
fai: new RemoteFile(fai, { fetch }),
98+
fai: faiHandle,
9999
})
100100
adapterLRU.set(fa, {
101101
adapter: sequenceAdapter,

0 commit comments

Comments
 (0)