Skip to content

Commit 821008b

Browse files
Imp chart data request (#552)
* chore(): add env variable for max batch size * Bump version up to 1.2.2 * chore(): cast env to number * chore(): set default * chore(): fix * Bump version up to 1.2.3 --------- Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
1 parent 8797876 commit 821008b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "hawk.api",
3-
"version": "1.2.2",
3+
"version": "1.2.3",
44
"main": "index.ts",
55
"license": "BUSL-1.1",
66
"scripts": {

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);
1111

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

0 commit comments

Comments
 (0)