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

Commit cd50a08

Browse files
Replace ChallengeTimelineTemplate.id with timelineTemplateId
1 parent bcb299a commit cd50a08

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/services/challengeService.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -490,7 +490,7 @@ async function getChallengeDetailFromV4ES (legacyId) {
490490
async function mapTimelineTemplateId (trackId, typeId) {
491491
const templates = await ChallengeTimelineTemplate.scan('trackId').contains(trackId).exec()
492492
const template = _.find(templates, { typeId })
493-
if (template) return template.id
493+
if (template) return template.timelineTemplateId
494494
throw new Error(`Timeline Template Not found for trackId: ${trackId} typeId: ${typeId}`)
495495
}
496496

0 commit comments

Comments
 (0)