Skip to content

Commit

Permalink
change limit
Browse files Browse the repository at this point in the history
  • Loading branch information
taranvohra committed Jan 3, 2024
1 parent b0fa998 commit 9d9cef5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 3 additions & 1 deletion integrations/github/src/installation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,9 @@ export async function querySpaceInstallations(
const { api, environment } = context;
const { page, limit = 100 } = options;

logger.debug(`Querying space installations for external ID ${externalId} (opt: ${options})`);
logger.debug(
`Querying space installations for external ID ${externalId} (${JSON.stringify(options)})`
);

const { data } = await api.integrations.listIntegrationSpaceInstallations(
environment.integration.name,
Expand Down
3 changes: 2 additions & 1 deletion integrations/github/src/webhooks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ export async function handleImportDispatchForSpaces(
nextPage,
total,
} = await querySpaceInstallations(context, configQuery, {
limit: 20,
limit: 10,
page,
});

Expand Down Expand Up @@ -178,6 +178,7 @@ export async function handleImportDispatchForSpaces(

// Queue the next page if there is one
if (nextPage) {
logger.debug(`queueing next page ${nextPage} of import dispatch for spaces`);
await queueTaskForImportSpaces(context, {
type: 'import:spaces',
payload: {
Expand Down

0 comments on commit 9d9cef5

Please sign in to comment.