Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .env.sample
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ JWT_SECRET_REFRESH_TOKEN=abacaba
# JWT secret for user's access token
JWT_SECRET_ACCESS_TOKEN=belarus

# max document could for one read request to the database
MAX_DB_READ_BATCH_SIZE=100000

# JWT secret for signing tokens for processing billing requests
JWT_SECRET_BILLING_CHECKSUM=checksum_secret
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "hawk.api",
"version": "1.2.1",
"version": "1.2.2",
"main": "index.ts",
"license": "BUSL-1.1",
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion src/models/eventsFactory.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ const Event = require('../models/event');
const { ObjectID } = require('mongodb');
const { composeEventPayloadByRepetition } = require('../utils/merge');

const MAX_DB_READ_BATCH_SIZE = 80000;
const MAX_DB_READ_BATCH_SIZE = process.env.MAX_DB_READ_BATCH_SIZE;

/**
* @typedef {import('mongodb').UpdateWriteOpResult} UpdateWriteOpResult
Expand Down
Loading