Skip to content

Commit

Permalink
Fix offset and position being swapped
Browse files Browse the repository at this point in the history
  • Loading branch information
garrettjstevens committed Nov 27, 2024
1 parent aa3aab9 commit f7c5e12
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 f7c5e12

Please sign in to comment.