Skip to content

Commit

Permalink
Fix occasional error in LocalFileGzip read (#484)
Browse files Browse the repository at this point in the history
Fix offset and position being swapped
  • Loading branch information
garrettjstevens authored Dec 3, 2024
1 parent 7c503be commit 1194924
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/apollo-collaboration-server/src/files/filesUtil.ts
Original file line number Diff line number Diff line change
Expand Up @@ -121,9 +121,9 @@ export class LocalFileGzip implements GenericFilehandle {
const unzippedContents = await this.contents
const bytesRead = unzippedContents.copy(
buffer,
position,
offset,
offset + length,
position,
position + length,
)
return { bytesRead, buffer }
}
Expand Down

0 comments on commit 1194924

Please sign in to comment.