Skip to content

Commit

Permalink
try to fix data consistent check memory overload
Browse files Browse the repository at this point in the history
  • Loading branch information
viktor-silakov committed Sep 26, 2023
1 parent ee5709a commit 491277f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion mvc/controllers/api/api_controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -1898,8 +1898,9 @@ exports.task_handle_database_consistency = async (req, res) => {
taskOutput('get tests data', res);
const allTestsBefore = await Test.find()
.exec();
taskOutput('get checks data', res);
taskOutput('get checks data_', res);
const allChecksBefore = await Check.find()
.lean()
.exec();
taskOutput('get snapshots data', res);
const allSnapshotsBefore = await Snapshot.find()
Expand Down

0 comments on commit 491277f

Please sign in to comment.