diff options
Diffstat (limited to 'packages/server/src/routes/api/v1/repo')
-rw-r--r-- | packages/server/src/routes/api/v1/repo/log.ts | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/packages/server/src/routes/api/v1/repo/log.ts b/packages/server/src/routes/api/v1/repo/log.ts index 5ba4044..b05487b 100644 --- a/packages/server/src/routes/api/v1/repo/log.ts +++ b/packages/server/src/routes/api/v1/repo/log.ts @@ -21,14 +21,14 @@ async function commitMap(commit: Commit) { }; } -async function patchMap(patch: Patch, index: number) { +async function patchMap(patch: Patch) { return <APIPatch>{ additions: patch.additions, deletions: patch.deletions, from: patch.from, to: patch.to, - too_large: await patch.isTooLarge(index), - hunks: await patch.getHunks(index) + too_large: await patch.isTooLarge(), + hunks: await patch.getHunks() }; } |