Skip to content
This repository was archived by the owner on Jan 23, 2025. It is now read-only.

Multi round sync #99

Merged
merged 5 commits into from
Sep 28, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 0 additions & 7 deletions src/constants.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,12 +71,6 @@ const PhaseStatusTypes = {
Closed: 3
}

const CheckpointPhaseTypes = {
Submission: 'Checkpoint Submission',
Screening: 'Checkpoint Screening',
Review: 'Checkpoint Review',
}

const prizeTypesIds = {
Contest: 15,
Checkpoint: 14
Expand Down Expand Up @@ -172,7 +166,6 @@ module.exports = {
createChallengeStatusesMap,
challengeStatuses,
PhaseStatusTypes,
CheckpointPhaseTypes,
prizeTypesIds,
supportedMetadata,
scorecardQuestionMapping
Expand Down
5 changes: 0 additions & 5 deletions src/services/ProcessorService.js
Original file line number Diff line number Diff line change
Expand Up @@ -661,11 +661,6 @@ async function processMessage (message) {
if (_.get(message, 'payload.legacy.selfService')) {
await disableTimelineNotifications(legacyId, createdByUserId) // disable
}
} else {
const v5PhaseType = _.find(message.payload.phases, p => p.name === constants.CheckpointPhaseTypes.Submission)
if (v5PhaseType) {
await recreatePhases(legacyId, message.payload.phases, updatedByUserId)
}
}

logger.debug('Result from parsePayload:')
Expand Down
2 changes: 1 addition & 1 deletion src/services/timelineService.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ const momentTZ = require('moment-timezone')
const IDGenerator = require('../common/idGenerator')
const helper = require('../common/helper')

const phaseIdGen = new IDGenerator('prize_id_seq')
const phaseIdGen = new IDGenerator('project_phase_id_seq')

const QUERY_GET_PHASE_TYPES = 'SELECT phase_type_id, name FROM phase_type_lu'

Expand Down