Skip to content

Commit 0a95850

Browse files
committed
chore(): cast env to number
1 parent 2094cc4 commit 0a95850

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/models/eventsFactory.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ const Event = require('../models/event');
77
const { ObjectID } = require('mongodb');
88
const { composeEventPayloadByRepetition } = require('../utils/merge');
99

10-
const MAX_DB_READ_BATCH_SIZE = process.env.MAX_DB_READ_BATCH_SIZE;
10+
const MAX_DB_READ_BATCH_SIZE = Number(process.env.MAX_DB_READ_BATCH_SIZE ?? 0);
1111

1212
/**
1313
* @typedef {import('mongodb').UpdateWriteOpResult} UpdateWriteOpResult

0 commit comments

Comments
 (0)