Skip to content

Commit 23124d1

Browse files
committed
Fix coverage integration preview options
1 parent 2475c82 commit 23124d1

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/endpoints/CoverageIntegrations/Client.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,14 +87,15 @@ export function createClient(api: DeferredJobsApiClient) {
8787

8888
async function preview(
8989
provider: CoverageEntry.Provider,
90-
options: { input: CoverageIntegration['input']; oldest?: boolean },
90+
options: { input: CoverageIntegration['input']; oldest?: number; limit?: number },
9191
): Promise<PreviewResponse> {
92-
const { input, oldest } = options;
92+
const { input, oldest, limit } = options;
9393
return api.post(`${routing.coverageIntegrationsUrl}/preview`, {
9494
payload: {
9595
provider,
9696
input,
9797
oldest,
98+
limit,
9899
},
99100
});
100101
}

0 commit comments

Comments
 (0)