We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2094cc4 commit 0a95850Copy full SHA for 0a95850
src/models/eventsFactory.js
@@ -7,7 +7,7 @@ const Event = require('../models/event');
7
const { ObjectID } = require('mongodb');
8
const { composeEventPayloadByRepetition } = require('../utils/merge');
9
10
-const MAX_DB_READ_BATCH_SIZE = process.env.MAX_DB_READ_BATCH_SIZE;
+const MAX_DB_READ_BATCH_SIZE = Number(process.env.MAX_DB_READ_BATCH_SIZE ?? 0);
11
12
/**
13
* @typedef {import('mongodb').UpdateWriteOpResult} UpdateWriteOpResult
0 commit comments