diff --git a/worker/src/handlers/batchStatementDeletion/batchStatementDeletion.js b/worker/src/handlers/batchStatementDeletion/batchStatementDeletion.js index 54859cc9a0..24ba8019c0 100644 --- a/worker/src/handlers/batchStatementDeletion/batchStatementDeletion.js +++ b/worker/src/handlers/batchStatementDeletion/batchStatementDeletion.js @@ -11,7 +11,6 @@ import { SITE_SETTINGS_ID } from 'lib/constants/siteSettings'; import SiteSettings from 'lib/models/siteSettings'; import Client from 'lib/models/client'; import getScopeFilter from 'lib/services/auth/filters/getScopeFilter'; -import { updateStatementCountsInOrg } from 'lib/services/lrs'; const markDone = async (batchDeleteId, jobDone) => { logger.debug(`Removing job for BatchDelete ${batchDeleteId} and marking as done`); @@ -135,10 +134,5 @@ export default async ({ }); } - if (done) { - const organisationId = batchDelete.organisation; - await updateStatementCountsInOrg(organisationId); - } - jobDone(); };