Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: ensure BATCH_SIZE is a Number #1800

Merged
merged 2 commits into from
Nov 27, 2023
Merged

Conversation

touv
Copy link
Contributor

@touv touv commented Nov 24, 2023

No description provided.

@@ -43,7 +43,8 @@ const getSourceData = async (ctx, sourceColumn) => {
};

export const createEnrichmentRule = async (ctx, enrichment) => {
const { enrichmentBatchSize: BATCH_SIZE = 10 } = ctx.configTenant;
const { enrichmentBatchSize } = ctx.configTenant;
const BATCH_SIZE = Number(enrichmentBatchSize || 10);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's right only because an enrichmentBatchSize of 0 makes no sense.

@touv touv added the 👷‍♂️ Ready For Review PR en attente de relecture et de validation label Nov 27, 2023
@JulienMattiussi JulienMattiussi merged commit 96779db into master Nov 27, 2023
9 checks passed
@JulienMattiussi JulienMattiussi deleted the fix-enrichment-size branch November 27, 2023 13:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
👷‍♂️ Ready For Review PR en attente de relecture et de validation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants