diff --git a/lib/database/migrations/20240424092020-add-qc-flag-effective-period-columns.js b/lib/database/migrations/20240424092020-add-qc-flag-effective-period-columns.js index 8c39b1d988..4a122f7422 100644 --- a/lib/database/migrations/20240424092020-add-qc-flag-effective-period-columns.js +++ b/lib/database/migrations/20240424092020-add-qc-flag-effective-period-columns.js @@ -26,7 +26,7 @@ const { timestampToMysql } = require('../../server/utilities/timestampToMysql'); * only effective periods of QC flags created before this timestamp will be updated * @return {Promise} promise */ -const _reconsturctEffectivePeriodForScopeAndPeriod = async ( +const _reconstructEffectivePeriodForScopeAndPeriod = async ( queryInterface, { from: intersecingPeriodFrom, to: intersectingPeriodTo }, { runNumber, dplDetectorId, dataPassId, simulationPassId, createdAt }, @@ -127,7 +127,7 @@ const _reconstructQcFlagsEffectivePeriods = async (queryInterface, { transaction dpl_detector_id: dplDetectorId, data_pass_id: dataPassId, } = flag; - await _reconsturctEffectivePeriodForScopeAndPeriod( + await _reconstructEffectivePeriodForScopeAndPeriod( queryInterface, { from: from.getTime(), to: to.getTime() }, { runNumber, dplDetectorId, dataPassId, createdAt: createdAt.getTime() }, @@ -161,7 +161,7 @@ const _reconstructQcFlagsEffectivePeriods = async (queryInterface, { transaction dpl_detector_id: dplDetectorId, simulation_pass_id: simulationPassId, } = flag; - await _reconsturctEffectivePeriodForScopeAndPeriod( + await _reconstructEffectivePeriodForScopeAndPeriod( queryInterface, { from: from.getTime(), to: to.getTime() }, { runNumber, dplDetectorId, simulationPassId, createdAt: createdAt.getTime() },