Skip to content

Commit 4a1e6e4

Browse files
authored
clean up MAX_NUM_FIND_DOCS
1 parent 6d21ee0 commit 4a1e6e4

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

service/database/index.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
const { getConnection } = require("./connector");
22
const { transformIdToObjectId } = require("./util");
33

4-
MAX_NUM_FIND_DOCS = 10000;
5-
64
let maxDocsInput = process.env.MAX_NUM_FIND_DOCS;
75
let MAX_NUM_FIND_DOCS = parseInt(maxDocsInput, 10);
86
if (isNaN(MAX_NUM_FIND_DOCS) || MAX_NUM_FIND_DOCS <= 0) {

0 commit comments

Comments
 (0)