Skip to content

Commit ebd9561

Browse files
authored
fix(Batch Deletes): Removes store recounts to stop Mongo crashes (#1514 - [LL-320](https://learningpool.atlassian.net/browse/LL-320))
https://learningpool.atlassian.net/browse/LL-320 #1514
1 parent 8ce4e3b commit ebd9561

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

worker/src/handlers/batchStatementDeletion/batchStatementDeletion.js

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ import { SITE_SETTINGS_ID } from 'lib/constants/siteSettings';
1111
import SiteSettings from 'lib/models/siteSettings';
1212
import Client from 'lib/models/client';
1313
import getScopeFilter from 'lib/services/auth/filters/getScopeFilter';
14-
import { updateStatementCountsInOrg } from 'lib/services/lrs';
1514

1615
const markDone = async (batchDeleteId, jobDone) => {
1716
logger.debug(`Removing job for BatchDelete ${batchDeleteId} and marking as done`);
@@ -135,10 +134,5 @@ export default async ({
135134
});
136135
}
137136

138-
if (done) {
139-
const organisationId = batchDelete.organisation;
140-
await updateStatementCountsInOrg(organisationId);
141-
}
142-
143137
jobDone();
144138
};

0 commit comments

Comments
 (0)