Skip to content

Commit

Permalink
makes more inclusive
Browse files Browse the repository at this point in the history
  • Loading branch information
dplumlee committed Apr 13, 2023
1 parent 6bc62fc commit 79943da
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ export const searchAfterAndBulkCreate = async ({
// skip the call to bulk create and proceed to the next search_after,
// if there is a sort id to continue the search_after with.
if (includedEvents.length !== 0) {
if (toReturn.createdSignalsCount + includedEvents.length > tuple.maxSignals) {
if (toReturn.createdSignalsCount + includedEvents.length >= tuple.maxSignals) {
toReturn.warningMessages.push(getMaxSignalsWarning(tuple.maxSignals));
}
// make sure we are not going to create more signals than maxSignals allows
Expand Down

0 comments on commit 79943da

Please sign in to comment.