unordered bulk insert
This commit is contained in:
1 parent
79abb0fd84
commit
b471c49cbf
4 files changed
+4
-5
No files matched your search
@@ -43,7 +43,7 @@ const createCheck = async (checkData) => {
|
||||
|
||||
const createChecks = async (checks) => {
|
||||
try {
|
||||
await Check.insertMany(checks);
|
||||
await Check.insertMany(checks, { ordered: false });
|
||||
} catch (error) {
|
||||
error.service = SERVICE_NAME;
|
||||
error.method = "createCheck";
|
||||
|
||||
Reference in new issue
Block a user